icon(image_path)
Class: UIComponent.
Description:
Sets or gets an icon image of this component. You can set icon to any component even though not all components display the icon.
When a component is added to Tabs and it has an icon, that icon will be used as a Tab icon by default.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
string | null |
Relative or absolute path to image file, base64 encoded image string, or NULL to remove existing icon. |
Returns:
Returns this component if no arguments are set, string of an previously set icon, or null if icon hasn't been set.
Type: this | string | null
