-
Notifications
You must be signed in to change notification settings - Fork 20
Editbox
Sharlikran edited this page Nov 28, 2020
·
4 revisions
property | type | default | required | description |
---|---|---|---|---|
type | string | - | yes | The widget type of this control ("editbox") |
name | number, string, function | - | yes | "My Editbox", The label for the editbox |
getFunc | function | - | yes | The value provider for the editbox. Needs to return a numeric value |
setFunc | function | - | yes | The assignment function for the editbox. Needs to accept a numeric value |
tooltip | number, string, function | nil | no | The tooltip to display for the editbox |
isMultiline | boolean | true | no | - |
isExtraWide | boolean | true | no | - |
maxChars | number | - | no | Number value for example 3000 |
textType | - | no | TEXT_TYPE_NUMERIC, number or function returning a number. Valid TextType numbers see: TextType | |
width | string | "full" | no | "full" or "half" width in the panel |
disabled | boolean, function | false | no | Determines if the Editbox is disabled and its value cannot be changed |
warning | number, string, function | nil | no | Shows a warning icon beside the editbox which has a tooltip with some warning text |
requiresReload | boolean | false | no | Appends a special warning text and shows a reload button if the value is changed |
default | number, function | nil | no | Default value of the editbox which is used to reset the panel to its defaults |
helpUrl | string, function | - | no | A string URL "https://www.esoui.com", or a function that returns one |
reference | string | nil | no | A unique global reference to the control |
{
type = "editbox",
name = "My Editbox",
tooltip = "Editbox's tooltip text.",
getFunc = function() return "this is some text" end,
setFunc = function(text) print(text) end,
isMultiline = false, --boolean
width = "half", --or "half" (optional)
warning = "Will need to reload the UI.", --(optional)
default = "", --(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