maxIconSize([max_size])

Class: UIComponent.

Description:

Gets or sets the maximum size of the icon's largest side (in pixels).
If the icon's largest side is larger than the specified maximum, it will be scaled down proportionally.
Applies to Button, Label, List, and ComboBox.

Parameters:

Name Type Description

[max_size]

number | null

Sets the maximum size of a larger side of icon, or resets to no maximum when null is passed.

Returns:

If called without arguments, returns number value, otherwise returns this component instance.

Type: number | null | Object