mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(interface): Add table<string, string> to icon typings (#261)
This commit is contained in:
committed by
GitHub
parent
c011d51184
commit
fc6a95c73c
@@ -4,7 +4,7 @@ local openContextMenu = nil
|
||||
---@class ContextMenuItem
|
||||
---@field title? string
|
||||
---@field menu? string
|
||||
---@field icon? string
|
||||
---@field icon? string | {[1]: IconProp, [2]: string};
|
||||
---@field iconColor? string
|
||||
---@field onSelect? fun(args: any)
|
||||
---@field arrow? boolean
|
||||
|
||||
@@ -5,7 +5,7 @@ local input
|
||||
---@field label string
|
||||
---@field options? { value: string, label: string, default?: string }[]
|
||||
---@field password? boolean
|
||||
---@field icon? string
|
||||
---@field icon? string | {[1]: IconProp, [2]: string};
|
||||
---@field iconColor? string
|
||||
---@field placeholder? string
|
||||
---@field default? string | number
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
---@alias IconProp 'fas' | 'far' | 'fal' | 'fat' | 'fad' | 'fab' | 'fak' | 'fass'
|
||||
|
||||
local keepInput = IsNuiFocusKeepingInput()
|
||||
|
||||
function lib.setNuiFocus(allowInput, disableCursor)
|
||||
|
||||
@@ -8,7 +8,7 @@ local openMenu
|
||||
|
||||
---@class MenuOptions
|
||||
---@field label string
|
||||
---@field icon? string
|
||||
---@field icon? string | {[1]: IconProp, [2]: string};
|
||||
---@field checked? boolean
|
||||
---@field values? table<string | { label: string, description: string }>
|
||||
---@field description? string
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
---@field position? NotificationPosition
|
||||
---@field type? NotificationType
|
||||
---@field style? { [string]: any }
|
||||
---@field icon? string;
|
||||
---@field icon? string | {[1]: IconProp, [2]: string};
|
||||
---@field iconColor? string;
|
||||
|
||||
---@param data NotifyProps
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---@class RadialMenuItem
|
||||
---@field id string
|
||||
---@field icon string
|
||||
---@field icon string | {[1]: IconProp, [2]: string};
|
||||
---@field label string
|
||||
---@field menu? string
|
||||
---@field onSelect? fun(currentMenu: string | nil, itemIndex: number) | string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---@class TextUIOptions
|
||||
---@field position? 'right-center' | 'left-center' | 'top-center';
|
||||
---@field icon? string;
|
||||
---@field icon? string | {[1]: IconProp, [2]: string};
|
||||
---@field iconColor? string;
|
||||
---@field style? string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user