From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+ Constructor Overrides Widget.afterDestroy Method called after destroying Snabbdom vnode. Overrides Widget.afterInsert Method called after inserting Snabbdom vnode into the DOM. Determines if the text input is automatically focused. Getter Determines if the text input is automatically focused.
+
+<init>
+
+DateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf())
+Parameters
+value
- date/time input valueformat
- date/time format (default YYYY-MM-DD HH:mm)classes
- a set of CSS class names
+
+
+afterDestroy
+
+protected open fun afterDestroy(): Unit
+
+
+afterInsert
+
+protected open fun afterInsert(node: VNode): Unit
+
+
+autofocus
+
+var autofocus: Boolean?
+
+
Setter
+
Determines if the text input is automatically focused.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/blur.html b/api/pl.treksoft.kvision.form.time/-date-time-input/blur.html new file mode 100644 index 00000000..98968f48 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/blur.html @@ -0,0 +1,15 @@ + + + +open fun blur(): Unit
+Makes the input element blur.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/change-value.html b/api/pl.treksoft.kvision.form.time/-date-time-input/change-value.html new file mode 100644 index 00000000..bbaa5718 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/change-value.html @@ -0,0 +1,14 @@ + + + +protected open fun changeValue(): Unit
+
+
diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/clear-btn.html b/api/pl.treksoft.kvision.form.time/-date-time-input/clear-btn.html
new file mode 100644
index 00000000..9caedf09
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.time/-date-time-input/clear-btn.html
@@ -0,0 +1,21 @@
+
+
+
+var clearBtn: Boolean
+Determines if Clear button should be visible.
+Getter
+
Determines if Clear button should be visible.
+ +Setter
+
Determines if Clear button should be visible.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/date-time-input.html b/api/pl.treksoft.kvision.form.time/-date-time-input/date-time-input.html new file mode 100644 index 00000000..40a1ab19 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/date-time-input.html @@ -0,0 +1,16 @@ + + + +fun Container.dateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: DateTimeInput.() -> Unit = null): DateTimeInput
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/days-of-week-disabled.html b/api/pl.treksoft.kvision.form.time/-date-time-input/days-of-week-disabled.html new file mode 100644 index 00000000..a2eb611d --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/days-of-week-disabled.html @@ -0,0 +1,21 @@ + + + +var daysOfWeekDisabled: Array<Int>
+Days of the week that should be disabled. Multiple values should be comma separated.
+Getter
+
Days of the week that should be disabled. Multiple values should be comma separated.
+ +Setter
+
Days of the week that should be disabled. Multiple values should be comma separated.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/disabled.html b/api/pl.treksoft.kvision.form.time/-date-time-input/disabled.html new file mode 100644 index 00000000..fccaea04 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/disabled.html @@ -0,0 +1,22 @@ + + + +open var disabled: Boolean
+Overrides FormInput.disabled
+Determines if the field is disabled.
+Getter
+
Determines if the field is disabled.
+ +Setter
+
Determines if the field is disabled.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/focus.html b/api/pl.treksoft.kvision.form.time/-date-time-input/focus.html new file mode 100644 index 00000000..6397a6ab --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/focus.html @@ -0,0 +1,15 @@ + + + +open fun focus(): Unit
+Makes the input element focused.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/format.html b/api/pl.treksoft.kvision.form.time/-date-time-input/format.html new file mode 100644 index 00000000..abe86341 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/format.html @@ -0,0 +1,21 @@ + + + +var format: String
+Date/time format.
+Getter
+
Date/time format.
+ +Setter
+
Date/time format.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.time/-date-time-input/get-sn-attrs.html new file mode 100644 index 00000000..cb36049b --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/get-sn-attrs.html @@ -0,0 +1,18 @@ + + + +protected open fun getSnAttrs(): List<StringPair>
+Overrides Widget.getSnAttrs
+Returns list of element attributes in the form of a List.
+Return
+list of element attributes
protected open fun getSnClass(): List<StringBoolPair>
+Overrides Widget.getSnClass
+Returns list of CSS class names for current widget in the form of a List.
+Return
+list of CSS class names
fun getValueAsString(): String?
+Get value of date/time input control as String
+Return
+value as a String
open fun hidePopup(): Unit
+Hides date/time chooser popup.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/index.html b/api/pl.treksoft.kvision.form.time/-date-time-input/index.html new file mode 100644 index 00000000..926e5ec6 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/index.html @@ -0,0 +1,597 @@ + + + +open class DateTimeInput : Widget, FormInput
+Basic date/time chooser component.
++ + | +
+DateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf()) |
+
+ + | +
+var autofocus: Boolean?
+Determines if the text input is automatically focused. + |
+
+ + | +
+var clearBtn: Boolean
+Determines if Clear button should be visible. + |
+
+ + | +
+var daysOfWeekDisabled: Array<Int>
+Days of the week that should be disabled. Multiple values should be comma separated. + |
+
+ + | +
+open var disabled: Boolean
+Determines if the field is disabled. + |
+
+ + | +
+var format: String
+Date/time format. + |
+
+ + | +
+var minuteStep: Int
+The increment used to build the hour view. + |
+
+ + | +
+open var name: String?
+The name attribute of the generated HTML input element. + |
+
+ + | +
+var placeholder: String?
+The placeholder for the date/time input. + |
+
+ + | +
+var readonly: Boolean?
+Determines if the date/time input is read-only. + |
+
+ + | +
+var showMeridian: Boolean
+Determines if meridian views are visible in day and hour views. + |
+
+ + | +
+open var size: InputSize?
+The size of the input. + |
+
+ + | +
+var todayBtn: Boolean
+Determines if Today button should be visible. + |
+
+ + | +
+var todayHighlight: Boolean
+Determines if the current day should be highlighted. + |
+
+ + | +
+var value: Date?
+Date/time input value. + |
+
+ + | +
+var weekStart: Int
+Day of the week start. 0 (Sunday) to 6 (Saturday). + |
+
+ + | +
+var draggable: Boolean?
+Determines if the current widget is draggable. + |
+
+ + | +
+var eventTarget: Widget? |
+
+ + | +
+var id: String?
+An ID attribute of generated HTML element. + |
+
+ + | +
+var lastLanguage: String? |
+
+ + | +
+open var parent: Container?
+Parent of the current component. + |
+
+ + | +
+var role: String?
+A role attribute of generated HTML element. + |
+
+ + | +
+var surroundingSpan: Boolean |
+
+ + | +
+var title: String?
+A title attribute of generated HTML element. + |
+
+ + | +
+open var visible: Boolean
+Visibility state of the current component. + |
+
+ + | +
+open fun afterDestroy(): Unit
+Method called after destroying Snabbdom vnode. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun blur(): Unit
+Makes the input element blur. + |
+
+ + | +
+open fun changeValue(): Unit |
+
+ + | +
+open fun focus(): Unit
+Makes the input element focused. + |
+
+ + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+fun getValueAsString(): String?
+Get value of date/time input control as String + |
+
+ + | +
+open fun hidePopup(): Unit
+Hides date/time chooser popup. + |
+
+ + | +
+open fun refreshDatePicker(): Unit |
+
+ + | +
+open fun refreshState(): Unit |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun showPopup(): Unit
+Open date/time chooser popup. + |
+
+ + | +
+open fun addCssClass(css: String): Widget
+Adds given value to the set of CSS classes generated in html code of current component. + |
+
+ + | +
+open fun addSurroundingCssClass(css: String): Widget
+Adds given value to the set of CSS classes generated in html code of parent component. + |
+
+ + | +
+open fun afterCreate(node: VNode): Unit
+Method called after creating Snabbdom vnode. + |
+
+ + | +
+open fun afterPostpatch(node: VNode): Unit
+Method called after updating Snabbdom vnode. + |
+
+ + | +
+open fun clearDragDropData(): Unit
+Clears D&D data for the current widget. It also makes it not draggable. + |
+
+ + | +
+open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean? |
+
+ + | +
+open fun getElement(): Node?
+Returns DOM element bound to the current component. + |
+
+ + | +
+open fun getElementJQuery(): JQuery?
+Returns JQuery element bound to the current component. + |
+
+ + | +
+open fun getElementJQueryD(): dynamic
+Returns JQuery element bound to the current component as a dynamic type. + |
+
+ + | +
+open fun getSnHooks(): Hooks?
+Returns list of hooks in the form of a Snabbdom Hooks object. + |
+
+ + | +
+open fun getSnOn(): On?
+Returns list of event handlers in the form of a Snabbdom On object. + |
+
+ + | +
+open fun hide(): Widget
+Makes current widget invisible. + |
+
+ + | +
+open fun removeCssClass(css: String): Widget
+Removes given value from the set of CSS classes generated in html code of current component. + |
+
+ + | +
+open fun removeEventListeners(): Widget
+Removes all event listeners from current widget. + |
+
+ + | +
+open fun removeSurroundingCssClass(css: String): Widget
+Removes given value from the set of CSS classes generated in html code of parent component. + |
+
+ + | +
+open fun render(elementName: String): VNode + open fun render(elementName: String, children: Array<dynamic>): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun setContextMenu(contextMenu: ContextMenu): Widget
+Sets context menu for the current widget. + |
+
+ + | +
+open fun setDragDropData(format: String, data: String): Unit
+Sets D&D data for the current widget. It also makes it draggable. + |
+
+ + | +
+open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit + open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit): Unit
+Sets the current widget as a D&D drop target. + |
+
+ + | +
+open fun setDropTargetData(format: String, callback: (String?) -> Unit): Unit
+Sets the current widget as a D&D drop target with helper callback accepting String data. + |
+
+ + | +
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+Sets an event listener for current widget, keeping the actual type of component. +open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+Sets an event listener for current widget. + |
+
+ + | +
+open fun show(): Widget
+Makes current widget visible. + |
+
+ + | +
+open fun toggleVisible(): Widget
+Toggles visibility of current widget. + |
+
+ + | +
+fun translate(text: String?): String? |
+
+ + | +
+fun Container.dateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: DateTimeInput.() -> Unit = null): DateTimeInput
+DSL builder extension function. + |
+
var minuteStep: Int
+The increment used to build the hour view.
+Getter
+
The increment used to build the hour view.
+ +Setter
+
The increment used to build the hour view.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/name.html b/api/pl.treksoft.kvision.form.time/-date-time-input/name.html new file mode 100644 index 00000000..4a911863 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/name.html @@ -0,0 +1,22 @@ + + + +open var name: String?
+Overrides FormInput.name
+The name attribute of the generated HTML input element.
+Getter
+
The name attribute of the generated HTML input element.
+ +Setter
+
The name attribute of the generated HTML input element.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/placeholder.html b/api/pl.treksoft.kvision.form.time/-date-time-input/placeholder.html new file mode 100644 index 00000000..94ddee2e --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/placeholder.html @@ -0,0 +1,21 @@ + + + +var placeholder: String?
+The placeholder for the date/time input.
+Getter
+
The placeholder for the date/time input.
+ +Setter
+
The placeholder for the date/time input.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/readonly.html b/api/pl.treksoft.kvision.form.time/-date-time-input/readonly.html new file mode 100644 index 00000000..e72773d9 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/readonly.html @@ -0,0 +1,21 @@ + + + +var readonly: Boolean?
+Determines if the date/time input is read-only.
+Getter
+
Determines if the date/time input is read-only.
+ +Setter
+
Determines if the date/time input is read-only.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/refresh-date-picker.html b/api/pl.treksoft.kvision.form.time/-date-time-input/refresh-date-picker.html new file mode 100644 index 00000000..08886f44 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/refresh-date-picker.html @@ -0,0 +1,14 @@ + + + +protected open fun refreshDatePicker(): Unit
+
+
diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/refresh-state.html b/api/pl.treksoft.kvision.form.time/-date-time-input/refresh-state.html
new file mode 100644
index 00000000..35ccc8fc
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.time/-date-time-input/refresh-state.html
@@ -0,0 +1,14 @@
+
+
+
+protected open fun refreshState(): Unit
+
+
diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/render.html b/api/pl.treksoft.kvision.form.time/-date-time-input/render.html
new file mode 100644
index 00000000..4b157a48
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.time/-date-time-input/render.html
@@ -0,0 +1,18 @@
+
+
+
+protected open fun render(): VNode
+Overrides Widget.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
var showMeridian: Boolean
+Determines if meridian views are visible in day and hour views.
+Getter
+
Determines if meridian views are visible in day and hour views.
+ +Setter
+
Determines if meridian views are visible in day and hour views.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/show-popup.html b/api/pl.treksoft.kvision.form.time/-date-time-input/show-popup.html new file mode 100644 index 00000000..fb3a130f --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/show-popup.html @@ -0,0 +1,15 @@ + + + +open fun showPopup(): Unit
+Open date/time chooser popup.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/size.html b/api/pl.treksoft.kvision.form.time/-date-time-input/size.html new file mode 100644 index 00000000..8f6e2908 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/size.html @@ -0,0 +1,22 @@ + + + +open var size: InputSize?
+Overrides FormInput.size
+The size of the input.
+Getter
+
The size of the input.
+ +Setter
+
The size of the input.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/today-btn.html b/api/pl.treksoft.kvision.form.time/-date-time-input/today-btn.html new file mode 100644 index 00000000..6c372f05 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/today-btn.html @@ -0,0 +1,21 @@ + + + +var todayBtn: Boolean
+Determines if Today button should be visible.
+Getter
+
Determines if Today button should be visible.
+ +Setter
+
Determines if Today button should be visible.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/today-highlight.html b/api/pl.treksoft.kvision.form.time/-date-time-input/today-highlight.html new file mode 100644 index 00000000..7d5b84d5 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/today-highlight.html @@ -0,0 +1,21 @@ + + + +var todayHighlight: Boolean
+Determines if the current day should be highlighted.
+Getter
+
Determines if the current day should be highlighted.
+ +Setter
+
Determines if the current day should be highlighted.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/value.html b/api/pl.treksoft.kvision.form.time/-date-time-input/value.html new file mode 100644 index 00000000..afa8799a --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/value.html @@ -0,0 +1,21 @@ + + + +var value: Date?
+Date/time input value.
+Getter
+
Date/time input value.
+ +Setter
+
Date/time input value.
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/week-start.html b/api/pl.treksoft.kvision.form.time/-date-time-input/week-start.html new file mode 100644 index 00000000..235068c3 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/week-start.html @@ -0,0 +1,21 @@ + + + +var weekStart: Int
+Day of the week start. 0 (Sunday) to 6 (Saturday).
+Getter
+
Day of the week start. 0 (Sunday) to 6 (Saturday).
+ +Setter
+
Day of the week start. 0 (Sunday) to 6 (Saturday).
+ + + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/-init-.html b/api/pl.treksoft.kvision.form.time/-date-time/-init-.html new file mode 100644 index 00000000..75de1fb7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/-init-.html @@ -0,0 +1,27 @@ + + + +DateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false)
+
+value
- date/time input value
+name
- the name attribute of the generated HTML input element
+format
- date/time format (default YYYY-MM-DD HH:mm)
+label
- label text bound to the input element
+rich
- determines if label can contain HTML code
Constructor
+
var autofocus: Boolean?
+Determines if the date/time input is automatically focused.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/blur.html b/api/pl.treksoft.kvision.form.time/-date-time/blur.html new file mode 100644 index 00000000..499cf820 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/blur.html @@ -0,0 +1,16 @@ + + + +open fun blur(): Unit
+Overrides FormControl.blur
+Makes the input element blur.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/clear-btn.html b/api/pl.treksoft.kvision.form.time/-date-time/clear-btn.html new file mode 100644 index 00000000..e4ba22de --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/clear-btn.html @@ -0,0 +1,15 @@ + + + +var clearBtn: Boolean
+Determines if Clear button should be visible.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/date-time.html b/api/pl.treksoft.kvision.form.time/-date-time/date-time.html new file mode 100644 index 00000000..718c8eaf --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/date-time.html @@ -0,0 +1,16 @@ + + + +fun Container.dateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): DateTime
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/days-of-week-disabled.html b/api/pl.treksoft.kvision.form.time/-date-time/days-of-week-disabled.html new file mode 100644 index 00000000..ab9639ac --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/days-of-week-disabled.html @@ -0,0 +1,15 @@ + + + +var daysOfWeekDisabled: Array<Int>
+Days of the week that should be disabled. Multiple values should be comma separated.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/flabel.html b/api/pl.treksoft.kvision.form.time/-date-time/flabel.html new file mode 100644 index 00000000..3ff85b02 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/flabel.html @@ -0,0 +1,16 @@ + + + +val flabel: FieldLabel
+Overrides FormControl.flabel
+Form field label.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/focus.html b/api/pl.treksoft.kvision.form.time/-date-time/focus.html new file mode 100644 index 00000000..91a1e22f --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/focus.html @@ -0,0 +1,16 @@ + + + +open fun focus(): Unit
+Overrides FormControl.focus
+Makes the input element focused.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/format.html b/api/pl.treksoft.kvision.form.time/-date-time/format.html new file mode 100644 index 00000000..3532f083 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/format.html @@ -0,0 +1,15 @@ + + + +var format: String
+Date/time format.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/get-sn-class.html b/api/pl.treksoft.kvision.form.time/-date-time/get-sn-class.html new file mode 100644 index 00000000..7d7912f3 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/get-sn-class.html @@ -0,0 +1,18 @@ + + + +protected open fun getSnClass(): List<StringBoolPair>
+Overrides Widget.getSnClass
+Returns list of CSS class names for current widget in the form of a List.
+Return
+list of CSS class names
open fun getValueAsString(): String?
+Overrides DateFormControl.getValueAsString
+Returns the value of the control as a String.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/hide-popup.html b/api/pl.treksoft.kvision.form.time/-date-time/hide-popup.html new file mode 100644 index 00000000..6b768d20 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/hide-popup.html @@ -0,0 +1,15 @@ + + + +open fun hidePopup(): Unit
+Hides date/time chooser popup.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/index.html b/api/pl.treksoft.kvision.form.time/-date-time/index.html new file mode 100644 index 00000000..e31348af --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/index.html @@ -0,0 +1,372 @@ + + + +open class DateTime : SimplePanel, DateFormControl
+Form field date/time chooser component.
++ + | +
+DateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false) |
+
+ + | +
+var autofocus: Boolean?
+Determines if the date/time input is automatically focused. + |
+
+ + | +
+var clearBtn: Boolean
+Determines if Clear button should be visible. + |
+
+ + | +
+var daysOfWeekDisabled: Array<Int>
+Days of the week that should be disabled. Multiple values should be comma separated. + |
+
+ + | +
+val flabel: FieldLabel
+Form field label. + |
+
+ + | +
+var format: String
+Date/time format. + |
+
+ + | +
+val input: DateTimeInput
+The actual input component. + |
+
+ + | +
+var label: String?
+The label text bound to the input element. + |
+
+ + | +
+var minuteStep: Int
+The increment used to build the hour view. + |
+
+ + | +
+var placeholder: String?
+The placeholder for the date/time input. + |
+
+ + | +
+var readonly: Boolean?
+Determines if the date/time input is read-only. + |
+
+ + | +
+var rich: Boolean
+Determines if label can contain HTML code. + |
+
+ + | +
+var showMeridian: Boolean
+Determines if meridian views are visible in day and hour views. + |
+
+ + | +
+var todayBtn: Boolean
+Determines if Today button should be visible. + |
+
+ + | +
+var todayHighlight: Boolean
+Determines if the current day should be highlighted. + |
+
+ + | +
+val validationInfo: HelpBlock
+Validation info component. + |
+
+ + | +
+open var value: Date?
+Date/time input value. + |
+
+ + | +
+var weekStart: Int
+Day of the week start. 0 (Sunday) to 6 (Saturday). + |
+
+ + | +
+open fun blur(): Unit
+Makes the input element blur. + |
+
+ + | +
+open fun focus(): Unit
+Makes the input element focused. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun getValueAsString(): String?
+Returns the value of the control as a String. + |
+
+ + | +
+open fun hidePopup(): Unit
+Hides date/time chooser popup. + |
+
+ + | +
+open fun removeEventListeners(): Widget
+Removes all event listeners from current widget. + |
+
+ + | +
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+Sets an event listener for current widget, keeping the actual type of component. +open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+Sets an event listener for current widget. + |
+
+ + | +
+open fun showPopup(): Unit
+Open date/time chooser popup. + |
+
+ + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to the current container. + |
+
+ + | +
+fun addInternal(child: Component): SimplePanel
+Protected and final method to add given component to the current container. + |
+
+ + | +
+open fun childrenVNodes(): Array<VNode>
+Returns the array of the children Snabbdom vnodes. + |
+
+ + | +
+open fun getChildren(): List<Component>
+Returns a list of children of the current container. + |
+
+ + | +
+open fun getValue(): Date?
+Returns the value of the control. + |
+
+ + | +
+open fun remove(child: Component): SimplePanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): SimplePanel
+Removes all children from the current container. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun setValue(v: Any?): Unit
+Sets the value of the control. + |
+
+ + | +
+fun Container.dateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): DateTime
+DSL builder extension function. + |
+
val input: DateTimeInput
+Overrides FormControl.input
+The actual input component.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/label.html b/api/pl.treksoft.kvision.form.time/-date-time/label.html new file mode 100644 index 00000000..0357010e --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/label.html @@ -0,0 +1,15 @@ + + + +var label: String?
+The label text bound to the input element.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/minute-step.html b/api/pl.treksoft.kvision.form.time/-date-time/minute-step.html new file mode 100644 index 00000000..5073b48e --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/minute-step.html @@ -0,0 +1,15 @@ + + + +var minuteStep: Int
+The increment used to build the hour view.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/placeholder.html b/api/pl.treksoft.kvision.form.time/-date-time/placeholder.html new file mode 100644 index 00000000..f59806f7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/placeholder.html @@ -0,0 +1,15 @@ + + + +var placeholder: String?
+The placeholder for the date/time input.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/readonly.html b/api/pl.treksoft.kvision.form.time/-date-time/readonly.html new file mode 100644 index 00000000..c39736fe --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/readonly.html @@ -0,0 +1,15 @@ + + + +var readonly: Boolean?
+Determines if the date/time input is read-only.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/remove-event-listeners.html b/api/pl.treksoft.kvision.form.time/-date-time/remove-event-listeners.html new file mode 100644 index 00000000..895dbb10 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/remove-event-listeners.html @@ -0,0 +1,18 @@ + + + +open fun removeEventListeners(): Widget
+Overrides Widget.removeEventListeners
+Removes all event listeners from current widget.
+Return
+current widget
var rich: Boolean
+Determines if label can contain HTML code.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/set-event-listener.html b/api/pl.treksoft.kvision.form.time/-date-time/set-event-listener.html new file mode 100644 index 00000000..40d2ae32 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/set-event-listener.html @@ -0,0 +1,54 @@ + + + +open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+Overrides Widget.setEventListener
+Sets an event listener for current widget, keeping the actual type of component.
+Return
+
current widget
+ + +Example:
+ + + button.setEventListener<Button> {
+ dblclick = {
+ Alert.show("Button double clicked!")
+ // self is of type Button here
+ }
+ }
+
+open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+Overrides Widget.setEventListener
+Sets an event listener for current widget.
+Return
+
current widget
+ + +Example:
+ + + button.setEventListener {
+ dblclick = {
+ Alert.show("Button double clicked!")
+ // self is of type Widget here
+ }
+ }
+
+
diff --git a/api/pl.treksoft.kvision.form.time/-date-time/show-meridian.html b/api/pl.treksoft.kvision.form.time/-date-time/show-meridian.html
new file mode 100644
index 00000000..790fc0e3
--- /dev/null
+++ b/api/pl.treksoft.kvision.form.time/-date-time/show-meridian.html
@@ -0,0 +1,15 @@
+
+
+
+var showMeridian: Boolean
+Determines if meridian views are visible in day and hour views.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/show-popup.html b/api/pl.treksoft.kvision.form.time/-date-time/show-popup.html new file mode 100644 index 00000000..5755e211 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/show-popup.html @@ -0,0 +1,15 @@ + + + +open fun showPopup(): Unit
+Open date/time chooser popup.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/today-btn.html b/api/pl.treksoft.kvision.form.time/-date-time/today-btn.html new file mode 100644 index 00000000..9ad572a6 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/today-btn.html @@ -0,0 +1,15 @@ + + + +var todayBtn: Boolean
+Determines if Today button should be visible.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/today-highlight.html b/api/pl.treksoft.kvision.form.time/-date-time/today-highlight.html new file mode 100644 index 00000000..4b3281d3 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/today-highlight.html @@ -0,0 +1,15 @@ + + + +var todayHighlight: Boolean
+Determines if the current day should be highlighted.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/validation-info.html b/api/pl.treksoft.kvision.form.time/-date-time/validation-info.html new file mode 100644 index 00000000..8fd72073 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/validation-info.html @@ -0,0 +1,16 @@ + + + +val validationInfo: HelpBlock
+Overrides FormControl.validationInfo
+Validation info component.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/value.html b/api/pl.treksoft.kvision.form.time/-date-time/value.html new file mode 100644 index 00000000..0bd1f1ee --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/value.html @@ -0,0 +1,16 @@ + + + +open var value: Date?
+Overrides DateFormControl.value
+Date/time input value.
+ + diff --git a/api/pl.treksoft.kvision.form.time/-date-time/week-start.html b/api/pl.treksoft.kvision.form.time/-date-time/week-start.html new file mode 100644 index 00000000..6dd03632 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time/week-start.html @@ -0,0 +1,15 @@ + + + +var weekStart: Int
+Day of the week start. 0 (Sunday) to 6 (Saturday).
+ + diff --git a/api/pl.treksoft.kvision.form.time/index.html b/api/pl.treksoft.kvision.form.time/index.html new file mode 100644 index 00000000..d811429f --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/index.html @@ -0,0 +1,36 @@ + + + +Full-featured date and time input components.
++ + | +
+open class DateTime : SimplePanel, DateFormControl
+Form field date/time chooser component. + |
+
+ + | +
+open class DateTimeInput : Widget, FormInput
+Basic date/time chooser component. + |
+