iconAt(i, [icon])

Class: Tabs.

Description:

Sets or gets the icon for the tab at specified index.

Parameters:

Name Type Description

i

number

Index of the tab

[icon]

string | null

Icon's path (URL, relative or absolute path) or base64 encoded image. Set null to remove current icon.

Returns:

When setting icon argument, this Tabs component object is returned; otherwise current icon is returned as base64 encoded string or null if the icon was not set.

Type: string | null | Tabs