📑CMenuMultiComboBox
CMenuMultiComboBox metatable.
:Name(): string
string
Returns widget's name.
:Update(items: string[]
, enabledItems: string[]
): nil
string[]
, enabledItems: string[]
): nil
items
string[]
enabledItems
string[]
table of enabled items
Updates the multicombo values.
Returns widget's parent.
:Type(): Enum.WidgetType
Enum.WidgetType
Returns widget type.
:Open(): nil
nil
Opens parent tabs.
:ForceLocalization(newText: string
): nil
string
): nil
Not recommended for use due to its complexity
newText
string
Changes text in the widget. The path to the widget is not affected. May be used for dynamic text customization or recolor.
:ToolTip(newText: string
): string
string
): string
newText
string
Gets or sets tooltip. Tooltip is displayed when mouse cursor is over the widget. Depends on the argument.
:ToolTip(): string
string
:Visible(value: boolean
): nil
boolean
): nil
value
boolean
Gets or sets visible state. Depends on argument.
Example
:Visible(): boolean
boolean
Example
:Disabled(value: boolean
): nil
boolean
): nil
value
boolean
Gets or sets disabled state. Depends on argument.
Example
:Disabled(): boolean
boolean
Example
:Unsafe(value: boolean
): nil
boolean
): nil
value
boolean
Gets or sets unsafe state. Unsafe widgets have warning sign. Depends on argument.
:Unsafe(): boolean
boolean
:Get(itemId: string
): boolean
string
): boolean
itemId
string
Returns enable state of the item in combo box.
:Set(enabledItems: string[]
): nil
string[]
): nil
enabledItems
string[]
A table of enabled items; other items will be disabled.
Sets a new value for the item by itemId or sets a new list of enabled items
:Set(itemId: string
, value: boolean
): nil
string
, value: boolean
): nil
itemId
string
value
boolean
:List(): string[]
string[]
Returns array of itemIds.
:ListEnabled(): string[]
string[]
Returns array of enabled itemIds.
imagePath
string
Path to the image.
offset [?]
Optional image offset. (default: {0.0, 0.0})
Sets widget's image.
icon
string
icon unicode.
offset [?]
Optional icon offset. (default: {0.0, 0.0})
Sets widget's icon. Icons list
Example
:SetCallback(callback: fun(this: CMenuMultiComboBox):nil
, forceCall [?]
: boolean
): nil
fun(this: CMenuMultiComboBox):nil
, forceCall [?]
: boolean
): nil
Multiple callbacks could be set.
callback
fun(this: CMenuMultiComboBox):nil
function to be called on widget change.
forceCall [?]
boolean
true if you want to call callback on widget creation. (default: false)
Sets widget's on change callback.
:UnsetCallback(callback: fun(this: CMenuMultiComboBox):nil
): nil
fun(this: CMenuMultiComboBox):nil
): nil
callback
fun(this: CMenuMultiComboBox):nil
function to be removed from widget's callbacks.
Removes widget's on change callback.
name
string
Name of the attachment.
color
Default color.
Creates CMenuColorPickerAttachment
and attaches it to the widget.
name
string
Name of the attachment.
gearIcon [?]
string
Gear FontAwesome icon. (default: "\uf013")
useSmallFont [?]
boolean
Use small font for gear icon. (default: true)
Creates CMenuGearAttachment
and attaches it to the widget.
:List(): string[]
string[]
Returns array of itemIds.
Last updated