Custom - sirinsidiator/ESO-LibAddonMenu GitHub Wiki

Data Table

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

Example

{
  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)
},