From 415afec335659ca6bc206b34bdd3c2fe4635718f 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/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..df0f22b6 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/disabled.html @@ -0,0 +1,21 @@ + + + +var disabled: Boolean
+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/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..e1ae5ada --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/index.html @@ -0,0 +1,535 @@ + + + +open class DateTimeInput : Widget
+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. + |
+
+ + | +
+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. + |
+
+ + | +
+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. + |
+
+ + | +
+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 id: String?
+An ID attribute of generated HTML element. + |
+
+ + | +
+open var parent: Component?
+Parent of the current component. + |
+
+ + | +
+var role: String?
+A role attribute of generated HTML element. + |
+
+ + | +
+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 changeValue(): Unit |
+
+ + | +
+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 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 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 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..dcad897b --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/name.html @@ -0,0 +1,21 @@ + + + +var name: String?
+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..7a2cf203 --- /dev/null +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/size.html @@ -0,0 +1,21 @@ + + + +var size: InputSize?
+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).
+ + + -- cgit