-
Notifications
You must be signed in to change notification settings - Fork 20
Date Picker
Baertram edited this page May 21, 2021
·
5 revisions
This widget is not included into LibAddonMenu and needs to be separately download from www.esoui.com:
https://www.esoui.com/downloads/info2932-LibAddonMenu-DatePickerwidget.html
Description of the bullet points 1 to 6 (see image above):
- Previous month
- Select today and close date picker
- Select the month from a dropdown
- Select the year by help of the mouse wheel, +/- buttons or enter the year into the editbox
- Select the current year
- Next month
property | type | default | required | description |
---|---|---|---|---|
type | string | - | yes | The widget type of this control ("datepicker") |
name | string | - | yes | My DatePicker", string id or function returning a string |
getFunc | function | - | yes | function() return db.timestamp, -- (UNIX timestamp value of the date at 00:00:00 midnight) |
setFunc | function | - | yes | function(timestamp) db.timestamp=timestampr |
tooltip | number, string, function | nil | no | "Date Picker's tooltip text.", or string id or function returning a string |
width | string | "full" | no | "full" or "half" width in the panel |
disabled | boolean, function | false | no | Determines if the date picker is disabled and its value cannot be changed |
warning | number, string, function | nil | no | Shows a warning icon beside the button 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 | timestamp = defaults.timestamp, timestamp of default date values (or default = defaultDate, where defaultDate is a timestamp) or a function that returns the timestamp |
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 = "datepicker",
name = "My DatePicker",
tooltip = "Date Picker's tooltip text.",
getFunc = function() return GetTimeStamp() end,
setFunc = function(timestamp) print(os.date("%c", timestamp)) end,
width = "half", --or "half" (optional)
warning = "warning text",
},
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