maxIconSize([max_size])
Class: MenuItem. Method inherited from 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 |
|---|---|---|
|
|
number |
Sets the maximum size of a larger side of icon. |
Returns:
If called without arguments, returns number value, otherwise returns this component instance.
Type: number | Object
