API

Interface IInspectableOptions

Interface used to define custom inspectable options in "Options" mode. This interface is used by the inspector to display the list of options

interface IInspectableOptions {
    label: string;
    selected?: boolean;
    value: string | number;
}
Index
label: string

Defines the visible part of the option

selected?: boolean

Defines if the option should be selected or not

value: string | number

Defines the value part of the option (returned through the callback)