-
Notifications
You must be signed in to change notification settings - Fork 20
Description
remosito edited this page Jun 7, 2022
·
7 revisions
The description control can be used to add a text block to your settings panel.
property | type | required | description |
---|---|---|---|
type | string | yes | The widget type of this control ("description") |
text | number, string, function | yes | The description text to display; will be hidden if an empty string is provided |
title | number, string, function | no | A title for the description block, appears in bold at the top |
width | string | no | "full" or "half" width in the panel |
disabled | function , boolean | no | function() return db.someBooleanSetting end, or boolean |
enableLinks | nil, true, handler | no | nil, true for default tooltips, or function OnLinkClicked handler see: OnLinkClicked |
helpUrl | string, function | no | A string URL "https://www.esoui.com", or a function that returns one |
reference | string | no | A unique global reference to the control |
tooltip | number, string, function | no | The tooltip to display for the Description |
This method updates the title and text of the description with changes to the data table.
LAM:RegisterOptionControls(panelName, {
{
type = "description",
title = "My Description",
text = [[My very informative description text that can span
multiple \nrows,
have |cff0000color tags|r and |t14:14:/EsoUI/Art/Help/help_tabIcon_tutorial_up.dds|t icons.]],
reference = "MyAddonDescription"
}
})
MyAddonDescription.data.title = "My New Description Title"
MyAddonDescription:UpdateValue()
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