-
Notifications
You must be signed in to change notification settings - Fork 24
Custom
Baertram edited this page May 21, 2021
·
6 revisions
| property | type | default | required | description |
|---|---|---|---|---|
| type | string | - | yes | The widget type of this control ("custom") |
| reference | string | - | no | "MyAddonCustomControl", unique name for your control to use as reference |
| createFunc | function | - | no | function (customControl) end, function to call when this custom control was created |
| refreshFunc | function | - | no | function(customControl) end, function to call when panel/controls refresh |
| minHeight | number | 26 | no | number for the minimum height of this control |
| maxHeight | number | 104 | no | number for the maximum height of this control. Standard is (minHeight) multiplied by 4 |
| width | string | "full" | no | "full" or "half" width in the panel |
{
type = "custom",
reference = "MyAddonCustomControl", -- unique name for your control to use as reference
createFunc = function(customControl) --(optional) function executed as the LAM custom control was created
--Create your own lua controls here and use newCreatedControl:SetParent(customControl) or anchor them to customControl
end,
refreshFunc = function(customControl) end, --(optional) function to call when panel/controls refresh
minHeight = 100, --number for the minimum height of this control
maxHeight = 300, --number for the maximum height of this control
width = "half", --or "half" (optional)
},General
Home
Differences between v1.0 and v2.0
Getting started
LAM2 for the Experienced Author
Reference
Exposed Methods on LAM2
LAM2 callbacks
Details on LAM2 data tables
LAM2 control widgets
Resources
Addons using LAM2
External controls
DatePicker widget
OrderListBox widget
SoundSlider widget
DualListBox widget
MultiSelectDropdown widget