Constructor
new components()
- Description:
- There is no constructor.
- Source:
Methods
(static) check_box()
- Description:
- This HTML tag, "check-box", adds functionality and a consistent and convenient API to the HTML provided
checkboxtag.
Attribute Description checked pre-selects the element
Content
The Content represents the label associated with the checkbox.
API Description clear() uncheck the box disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets focus on control getValue() returns trueif checked andfalseif uncheckedhide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() trueif the user changed its stateisDisabled() trueif the control is disabledisHidden() trueif the control is hidden (not visible)isReadOnly() trueif the control is read-onlyisVisible() trueif the control is visible (not hidden)onChange(fun) execute funwhenever the state of this control changes.funis passed the value of the control.processChanges(flg) if false, checkbox should not register changes (no data was changed) See Utils.someControlValueChanged()readOnly([flg]) sets control to read-only (or the reverse if the optional argument is false)readWrite([flg]) sets control to read-write (or the reverse if the optional argument is false)setValue(val) if valistruecheck the box, uncheck iffalseshow([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "check-box", adds functionality and a consistent and convenient API to the HTML provided
- Source:
(static) date_input()
- Description:
- This HTML tag, "date-input", adds functionality and a consistent and convenient API for user date input.
This control is custom and doesn't use the native browser date input offering the advantage of a significantly smaller width requirements. Also see native-date-input tag.
Attribute Description max="20181231" the maximum date allowed (also accepts "2018-12-31", "2/22/25", etc.) min="20180101" the minimum date allowed (also accepts "2018-12-31", "2/22/25", etc.) no-placeholder do not display mm/dd/yyyy when field is empty required an entry is required
Content
The Content represents the placeholder or what is shown as a prompt inside the control when there is no value.
API Description clear() clear the control value disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets the focus (where the cursor is located) to this control getDateValue() returns the date as a DateinstancegetIntValue() returns the date as an integer with the "YYYYMMDD" format getSQLValue() returns the date as a string with the "YYYY-MM-DD" format hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() trueif the user changed the valueisDisabled() trueif the control is disabledisError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isHidden() trueif the control is hidden (not visible)isReadOnly() trueif the control is read-onlyisVisible() trueif the control is visible (not hidden)onCChange(fun) execute funimmediately when the value is changed by the user,funis passed the control valueonChange(fun) execute funwhenever the user exits the control if the value changed,funis passed the control valueonEnter(fun) execute fun when enter key hit readOnly([flg]) set control to read-only (or the reverse if the optional argument is false)readWrite([flg]) set control to read-write (or the reverse if the optional argument is false)setMaxValue(val) sets the maximum value the control will accept valmay be aDate,number(20180608), orstring("2018-06-08")setMinValue(val) sets the minimum value the control will accept valmay be aDate,number(20180608), orstring("2018-06-08")setValue(val) sets the control value. valmay be aDate,number(20180608), orstring("2018-06-08")show([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "date-input", adds functionality and a consistent and convenient API for user date input.
This control is custom and doesn't use the native browser date input offering the advantage of a significantly smaller width requirements. Also see native-date-input tag.
- Source:
(static) drop_down()
- Description:
- This HTML tag, "drop-down", adds functionality and a consistent and convenient API to the HTML provided
selecttag.
Attribute Description default-option="label" what is shown before the user makes a selection. This would often be something like "(choose)" required a selection is required
Content
The Content represents the HTML that would normally be inside an HTMLselectelement. This would only be used in cases of a static list. List contents that depended on data would use theaddmethod.
API Description add(val, lbl, data) add a new list item. valis the value associated to the option,lblis the text shown in the list, anddata represents optional and arbitrary data associated to the optionaddItems(items, valField, lblField [, dataField]) used to add an array of items at one time. itemsis the array of items to add.valFieldandlblFieldare the names of the fields in the array.lblFieldan also be a function that formats the label. It is passed the row initems.dataFieldis the name of a field whose data is stored along with the item. If null, the whole item is stored.clear() remove the list contents except the default-optiondisable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)fill(selectedItem, items, valField, labelField [, dataField]) clear and fill a dropdown selecting the specified item focus() sets focus on the control getAllLabels() returns an array of all the labels getAllData() returns an array of all the data associated with the control getData(idx) returns the data associated to an option. If idxis undefined, the selected row is used otherwise the row indexed byidxis used.getLabel(idx) returns the label associated to an option. If idxis undefined, the selected row is used otherwise the row indexed byidxis used.getValue(idx) returns the string value associated to an option (returns an array if multipleattribute included). Ifidxis undefined, the selected row is used otherwise the row indexed byidxis used.hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty([flg]) trueif user changed value (or the reverse if the optional argument isfalse)isDisabled() trueif control is disabledisHidden() trueif control is hidden (not visible)isError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isReadOnly() trueif control is read-onlyisVisible() trueif control is visible (not hidden)onChange(fun) execute funwhenever the state of this control changes.funis called as followsfun(val, lbl, data)readOnly([flg]) make control read-only (or the reverse if the optional argument is false)readWrite([flg]) make control read-write (or the reverse if the optional argument is false)removeByIndex(idx) remove the row indicated by idxselectedIndex() returns the index of the selected item (-1 if none) selectIndex(row) selects the indicated row index setLabel(lbl, idx) sets a row label to lbl. Ifidxis undefined, the selected row is affected otherwise the row indexed byidxis updated.setValue(val, idx) sets a row value to val. Ifidxis undefined, the selected row is affected otherwise the row indexed byidxis updated.show([flg]) the control is made visible (or the reverse if the optional argument is false)size() returns the number of rows in the list (including default-optiontriggerGlobalChange(flg) Default true. Iffalsethen control changes will not trigger a global control change. SeeUtils.someControlValueChanged()
- This HTML tag, "drop-down", adds functionality and a consistent and convenient API to the HTML provided
- Source:
(static) file_upload()
- Description:
- This HTML tag, "file-upload", adds functionality and a consistent and convenient facility uploading files and taking pictures with the camera.
Please note: When this control is used, you must useServer.fileUploadSend()rather thanServer.call().
Attribute Description multiple the user may select multiple files required an entry is required (at least 1 file) accept types of files allowed (see HTML input type="file") custom rather than the native HTML control, use a Kiss button to upload files.
Content
The Content of this control is unused.
API Description clear() erases the contents of the control click() simulate a user click on the control disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets the focus (where the cursor is located) to this control getFormData() gets the upload file data for transmission to the back-end hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() has the control contents been changed by user isError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isDisabled() is the control disabled? isHidden() is the control hidden? isReadOnly() is the control read-only? isVisible() is the control visible? numberOfUploadFiles() the number of files the user selected is returned onChange(fun) execute fun when control changes readOnly([flg]) set control to read-only (or the reverse if the optional argument is false)readWrite([flg]) set control to read-write (or the reverse if the optional argument is false)show([flg]) the control is made visible (or the reverse if the optional argument is false)uploadFile(idx) the JavaScript FileListobject of file numberidx. Ifidxis missing, the whole FileList is returned.uploadFileExtension(idx) the file name extension of file number idxuploadFilename(idx) the name of file number idx
- This HTML tag, "file-upload", adds functionality and a consistent and convenient facility uploading files and taking pictures with the camera.
- Source:
(static) list_box()
- Description:
- This HTML tag, "list-box", adds functionality and a consistent and convenient API to the HTML provided
selecttag.
Be sure to call theclear()method between uses otherwise the system won't detect the same file being accessed.
Attribute Description default-option="label" what is the default selection multiple multiple entries may be selected (an array will be returned) required a selection is required size="20" the minimum number of visible lines (will expand to fill the area it is in)
Content
The Content represents the HTML that would normally be inside an HTMLselectelement. This would only be used in cases of a static list. List contents that depended on data would use theaddmethod.
API Description add(val, lbl, data) add a new list item. valis the value associated to the option,lblis the text shown in the list, anddata represents optional and arbitrary data associated to the optionaddItems(items, valField, lblField [, dataField]) used to add an array of items at one time. itemsis the array of items to add.valFieldandlblFieldare the names of the fields in the array.lblFieldan also be a function that formats the label. It is passed the row initems.dataFieldis the name of a field whose data is stored along with the item. If null, the whole item is stored.clear() remove the list contents except the default-optionclearSelection() de-select all elements disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets focus on control getAllLabels() returns an array of all the labels getAllData() returns an array of all the data associated with the control getData(idx) returns the data associated to an option. If idxis undefined, the selected row is used otherwise the row indexed byidxis used.getLabel(idx) returns the label associated to an option. If idxis undefined, the selected row is used otherwise the row indexed byidxis used.getValue(idx) returns the string value associated to an option (returns an array if multipleattribute included). Ifidxis undefined, the selected row is used otherwise the row indexed byidxis used.hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() trueif user has changed control valueisDisabled() trueif control is disabledisError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isHidden() trueif control is hidden (not visible)isReadOnly() trueif control is read-onlyisVisible() trueif control is visible (not hidden)onChange(fun) execute funwhenever the state of this control changes.funis called as followsfun(val, lbl, data)onClick(fun) execute funwhenever the user clicks on an item.funis called as followsfun(val, lbl, data)onDblClick(fun) execute funwhenever the user double-clicks on an item.funis called as followsfun(val, lbl, data) (Note that double-click does not function on mobile devices.)readOnly([flg]) sets control to read-only (or the reverse if the optional argument is false)readWrite([flg]) sets control to read-write (or the reverse if the optional argument is false)removeByIndex(idx) remove the row indicated by idxsetLabel(lbl, idx) sets a row label to lbl. Ifidxis undefined, the selected row is affected otherwise the row indexed byidxis updated.setValue(val, idx) sets a row value to val. Ifidxis undefined, the selected row is affected otherwise the row indexed byidxis updated.selectedIndex() returns the index of the selected item (-1 if none) selectIndex(row) selects the indicated row index show([flg]) the control is made visible (or the reverse if the optional argument is false)size() returns the number of rows in the list triggerGlobalChange(flg) Default true. Iffalsethen control changes will not trigger a global control change. SeeUtils.someControlValueChanged()
- This HTML tag, "list-box", adds functionality and a consistent and convenient API to the HTML provided
- Source:
(static) native_date_input()
- Description:
- This HTML tag, "native-date-input", adds functionality and a consistent and convenient API to the HTML provided date input.
Also see the date-input tag.
Attribute Description max="20181231" the maximum date allowed (also accepts "2018-12-31", "2/22/25", etc.) min="20180101" the minimum date allowed (also accepts "2018-12-31", "2/22/25", etc.) required an entry is required
Content
The Content represents the placeholder or what is shown as a prompt inside the control when there is no value.
API Description clear() clear the control value disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets the focus (where the cursor is located) to this control getDateValue() returns the date as a DateinstancegetIntValue() returns the date as an integer with the "YYYYMMDD" format getSQLValue() returns the date as a string with the "YYYY-MM-DD" format hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() trueif the user changed the valueisDisabled() trueif the control is disabledisError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isHidden() trueif the control is hidden (not visible)isReadOnly() trueif the control is read-onlyisVisible() trueif the control is visible (not hidden)onCChange(fun) execute funimmediately when the value is changed by the user,funis passed the control valueonChange(fun) execute funwhenever the user exits the control if the value changed,funis passed the control valueonEnter(fun) execute fun when enter key hit readOnly([flg]) set control to read-only (or the reverse if the optional argument is false)readWrite([flg]) set control to read-write (or the reverse if the optional argument is false)setMaxValue(val) sets the maximum value the control will accept valmay be aDate,number(20180608), orstring("2018-06-08")setMinValue(val) sets the minimum value the control will accept. valmay be aDate,number(20180608), orstring("2018-06-08")setValue(val) sets the control value. valmay be aDate,number(20180608), orstring("2018-06-08")show([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "native-date-input", adds functionality and a consistent and convenient API to the HTML provided date input.
Also see the date-input tag.
- Source:
(static) numeric_input()
- Description:
- This HTML tag, "numeric-input", adds functionality and a consistent and convenient API to the HTML input text element. For example, it will
only accept numbers, can verify decimal places, and formats the number when the control is exited by the user.
Attribute Description decimal-places="2" controls the maximum number of digits past the decimal point (default 0) dollar-sign adds a dollar sign when formatting the number left-justify left-justifies the number (default is right-justified) min="20" sets the minimum acceptable value (default 0) max="200" sets the maximum acceptable value money sets min="0" dollar-sign decimal-places="2"no-comma do not format number with commas required an entry is required show-zero show zero values (instead of blank if zero) size="20" width of control in number of characters (default 20)
Content
The Content represents the placeholder or what is shown as a prompt inside the control when there is no value.
API Description clear() erases the contents of the control disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets the focus (where the cursor is located) to this control getValue() returns the numeric value of the control hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() did user change control content? isDisabled() is control disabled? isError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isHidden() is control hidden? isReadOnly() is control read-only? isVisible() is control visible? onCChange(fun) execute funimmediately when the value is changed by the user,funis passed the control valueonChange(fun) execute funwhenever the user exits the control if the value changed,funis passed the control valueonEnter(fun) execute fun when enter key hit readOnly([flg]) set control to read-only (or the reverse if the optional argument is false)readWrite([flg]) set control to read-write (or the reverse if the optional argument is false)setMaxValue(val) sets the maximum value the control will accept setMinValue(val) sets the minimum value the control will accept setValue(val) sets the numeric value of the control show([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "numeric-input", adds functionality and a consistent and convenient API to the HTML input text element. For example, it will
only accept numbers, can verify decimal places, and formats the number when the control is exited by the user.
- Source:
(static) picture()
- Description:
- This HTML tag, "picture", adds the ability to display an image.
API Description clear() erases the image hide([flg]) the image is hidden (or the reverse if the optional argument is false)isHidden() is image hidden? isVisible() is image visible? onclick(fun) funis executed when the user clicks on the imagesetValue(filename, image) sets the image to be displayed show([flg]) the image is made visible (or the reverse if the optional argument is false)
- This HTML tag, "picture", adds the ability to display an image.
- Source:
(static) popup()
- Description:
- This HTML tag, "popup", adds the ability to define a popup window. Within it, the tags "popup-title" and "popup-body"
should be used to define the respective parts of the popup window.
Attribute Description height="400px" sets the height of the body of the popup window width="200px" sets the width of the body of the popup window
- This HTML tag, "popup", adds the ability to define a popup window. Within it, the tags "popup-title" and "popup-body"
should be used to define the respective parts of the popup window.
- Source:
(static) push_button()
- Description:
- This HTML tag, "push-button", adds functionality and a consistent and convenient API to the HTML provided button input.
No new attributes are defined.
Content
No element content is defined.
API Description click() simulate a button click disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets focus to control getValue() returns the label on the push button hide([flg]) hides the control (or the reverse if the optional argument is false)isDisabled() trueif control is disabledisHidden() trueif control is hidden (not visible)isReadOnly() trueif control is read-onlyisVisible() trueif control is visible (not hidden)readOnly([flg]) sets control to read-only (or the reverse if the optional argument is false)readWrite([flg]) sets control to read-write (or the reverse if the optional argument is false)onclick(fun) funis executed when the user clicks on the buttonsetValue(val) sets the label on the push button show([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "push-button", adds functionality and a consistent and convenient API to the HTML provided button input.
- Source:
(static) radio_button()
- Description:
- This HTML tag, "radio-button", adds functionality and a consistent and convenient API to the HTML provided radio input element.
One thing that makes this control different from the others is that it can be referred to with the$$function by its group name or the individual radio button id. When the group name is used, the entire group is effected. When an individual radio button is addressed by its id, only that control is effected.
All the radio buttons in the same group should share the same group name.
Attribute Description align-horizontal align the buttons horizontally (default) align-vertical align the buttons vertically button-style="style" style used for the button portion of the radio button checked pre-selects the particular radio button group="name" the name of the group this radio button is a part of (the same for each radio button in a group) label-style="style" style used for the label portion of the radio button name="name" this is an alternate to the groupattribute for HTML consistencyrequired a selection is required value="value" required unique value associate with each radio button (different for each radio button)
Content
This is the label associated with the radio button.
API Description API Description clear() sets the radio button group to none selected disable([flg]) set the control to disabled (or the reverse if the optional argument is false)enable([flg]) set the control to enabled (or the reverse if the optional argument is false)focus() set focus on the current control getIntValue() the integer value of the selected ratio button group getValue() the string value of the selected ratio button group hide([flg]) hides the control (or the reverse if the optional argument is false)isDirty() trueif the user changed the valueisDisabled() trueif the control is disabledisError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isHidden(desc) trueif the control is hidden (not visible)isReadOnly() trueif the control is read-onlyisVisible() trueif the control is visible (not hidden)onChange(fun) execute funwhenever the state of this control changes.funis passed the value of the control group.readOnly([flg]) sets the control to read-only (or the reverse if the optional argument is false)readWrite([flg]) sets the control to read-write (or the reverse if the optional argument is false)setLabel(val) selects the label for the control setValue(val) selects the button with the associated value show([flg]) sets the control to show (not hide) (or the reverse if the optional argument is false)
- This HTML tag, "radio-button", adds functionality and a consistent and convenient API to the HTML provided radio input element.
- Source:
(static) text_input()
- Description:
- This HTML tag, "text-input", adds functionality and a consistent and convenient API to the HTML provided text input.
Attribute Description fixcap auto-correct capitalization of each word (first char uppercase, rest lowercase) minlength="5" sets the minimum acceptable string length maxlength="20" sets the maximum number of characters password the character are not shown on the screen required an entry is required (at least 1 character) size="20" width of control in number of characters (default 20) upcase when the user enters text, it is auto-upcased
Content
The Content represents the placeholder or what is shown as a prompt inside the control when there is no value.
API Description clear() erases the contents of the control disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets the focus (where the cursor is located) to this control getValue() returns the string associated with the control hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() has the control contents been changed by user isError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isDisabled() is the control disabled? isHidden() is the control hidden? isReadOnly() is the control read-only? isVisible() is the control visible? onCChange(fun) execute funimmediately when the value is changed by the user,funis passed the control valueonChange(fun) execute funwhenever the user exits the control if the value changed,funis passed the control valueonEnter(fun) execute fun when enter key hit readOnly([flg]) set control to read-only (or the reverse if the optional argument is false)readWrite([flg]) set control to read-write (or the reverse if the optional argument is false)setPassword(val) if true, treat as a password control; iffalse, treat as text input - previous value is returnedsetValue(val) sets the string inside the control show([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "text-input", adds functionality and a consistent and convenient API to the HTML provided text input.
- Source:
(static) text_label()
- Description:
- This HTML tag, "text-label", adds functionality and a consistent and convenient API to the HTML provided label tag when the 'for' attribute is
used or the 'span' tag otherwise.
Content
The Content represents the content of the label.
API Description clear() erases the contents of the control getValue() returns the string associated with the control hide([flg]) the control is hidden (or the reverse if the optional argument is false)isHidden() is the control hidden? isVisible() is the control visible? onclick(fun) funis executed when the user clicks on the textsetColor(val) sets the color of the text setValue(val) sets the string inside the control setHTMLValue(val) sets the HTML inside the control show([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "text-label", adds functionality and a consistent and convenient API to the HTML provided label tag when the 'for' attribute is
used or the 'span' tag otherwise.
- Source:
(static) textbox_input()
- Description:
- This HTML tag, "textbox-input", adds functionality and a consistent and convenient API to the HTML provided multi-line text input.
Static HTML content can be used inside this control.
Attribute Description minlength="5" sets the minimum acceptable string length maxlength="200" sets the maximum number of characters placeholder="" text to be displaced in the control until the user enters data required an entry is required (at least 1 character) upcase when the user enters text, it is auto-upcased
Content
The Content represents the placeholder or what is shown as a prompt inside the control when there is no value.
API Description clear() erases the contents of the control disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets the focus (where the cursor is located) to this control getValue() returns the string associated with the control hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() trueif user changed control contentsisDisabled() trueif control is disabledisError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isHidden() trueif user control is hidden (not visible)isReadOnly() trueif control is read-onlyisVisible() trueif control is visible (not hidden)onCChange(fun) execute funimmediately when the value is changed by the user,funis passed the control valueonChange(fun) execute funwhenever the user exits the control if the value changed,funis passed the control valuereadOnly([flg]) sets control to read-only (or the reverse if the optional argument is false)readWrite([flg]) sets control to read-write (or the reverse if the optional argument is false)setHtmlValue(val) sets the string inside the control. The string is interpreted as HTML. setValue(val) sets the string inside the control show([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "textbox-input", adds functionality and a consistent and convenient API to the HTML provided multi-line text input.
Static HTML content can be used inside this control.
- Source:
(static) time_input()
- Description:
- This HTML tag, "time-input", provides a control where the user can enter a time. The time appear like "3:30 PM". A 24 hour clock is also supported automatically (like 14:30).
The values this control interacts with is a plain integer in the form HHMM in a 24 hour clock. So, "1:30 PM" would be
1330. -1 is returned if the field is left blank.
Attribute Description min="0800" the minimum time allowed (also accept times like "3:30 pm", etc.) min="1800" the maximum time allowed (also accept times like "3:30 pm", etc.) no-placeholder do not display hh:mm when field is empty required an entry is required size="20" width of control in number of characters (default 20) zero-fill zero fill the display
Content
The Content represents the HTML that would normally be inside an HTMLselectelement. This would only be used in cases of a static list. List contents that depended on data would use theaddmethod.
API Description clear() remove the value associated with the control disable([flg]) the control remains visible but inactive (or the reverse if the optional argument is false)enable([flg]) the control is set to visible and enabled (or the reverse if the optional argument is false)focus() sets the focus (where the cursor is located) to this control getValue() returns the value associated with the control hide([flg]) the control is hidden (or the reverse if the optional argument is false)isDirty() trueif user changed control valueisDisabled() trueif control is disabledisError(desc) used for error checking. If error, display error message and return true.descis a description of the user field.isHidden() trueif control is hidden (not visible)isReadOnly() trueif control is read-onlyisVisible() trueif control is visible (not hidden)onCChange(fun) execute funimmediately when the value is changed by the user,funis passed the control valueonChange(fun) execute funwhenever the user exits the control if the value changed,funis passed the control valueonEnter(fun) execute fun when enter key hit readOnly([flg]) sets control to read-only (or the reverse if the optional argument is false)readWrite([flg]) sets control to read-write (or the reverse if the optional argument is false)setMaxValue(val) sets the maximum value the control will accept (accept times like 1530, "3:30 pm", etc.) setMinValue(val) sets the minimum value the control will accept (accept times like 1530, "3:30 pm", etc.) setValue(val) sets the value associated with the control show([flg]) the control is made visible (or the reverse if the optional argument is false)
- This HTML tag, "time-input", provides a control where the user can enter a time. The time appear like "3:30 PM". A 24 hour clock is also supported automatically (like 14:30).
The values this control interacts with is a plain integer in the form HHMM in a 24 hour clock. So, "1:30 PM" would be
- Source: