From f3c9d405382dd81d426c7eab1f6390ec8e6dad00 Mon Sep 17 00:00:00 2001
From: Robert Jaros
-
-
-
- Constructor Determines if the date/time input is automatically focused. Determines if Clear button should be visible. DSL builder extension function. It takes the same parameters as the constructor of the built component. Days of the week that should be disabled. Multiple values should be comma separated. Overrides FormControl.disabled Determines if the field is disabled. Getter Determines if the field is disabled.
-
-<init>
-
-DateTime(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false)
-Parameters
-value
- date/time input valueformat
- date/time format (default YYYY-MM-DD HH:mm)label
- label text bound to the input elementrich
- determines if label can contain HTML code
-
-
-autofocus
-
-var autofocus: Boolean?
-
-
-clearBtn
-
-var clearBtn: Boolean
-
-
-dateTime
-
-fun Container.dateTime(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): DateTime
-
-
-daysOfWeekDisabled
-
-var daysOfWeekDisabled: Array<Int>
-
-
-disabled
-
-open var disabled: Boolean
-
-
Setter
-
Determines if the field is disabled.
- - - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/flabel.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/flabel.html deleted file mode 100644 index 3ff85b02..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/flabel.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -val flabel: FieldLabel
-Overrides FormControl.flabel
-Form field label.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/format.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/format.html deleted file mode 100644 index 3532f083..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/format.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var format: String
-Date/time format.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/get-sn-class.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/get-sn-class.html deleted file mode 100644 index 7d7912f3..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/get-sn-class.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -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/docs/api/pl.treksoft.kvision.form.time/-date-time/hide-popup.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/hide-popup.html deleted file mode 100644 index 6b768d20..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/hide-popup.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -open fun hidePopup(): Unit
-Hides date/time chooser popup.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/index.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/index.html deleted file mode 100644 index 2d5af44c..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/index.html +++ /dev/null @@ -1,381 +0,0 @@ - - - -open class DateTime : SimplePanel, DateFormControl
-Form field date/time chooser component.
-- - | -
-DateTime(value: Date? = 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. - |
-
- - | -
-open var disabled: Boolean
-Determines if the field is disabled. - |
-
- - | -
-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 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 rich: Boolean
-Determines if label can contain HTML code. - |
-
- - | -
-var showMeridian: Boolean
-Determines if meridian views are visible in day and hour views. - |
-
- - | -
-open var size: InputSize?
-Input control size. - |
-
- - | -
-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 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, 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/docs/api/pl.treksoft.kvision.form.time/-date-time/label.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/label.html deleted file mode 100644 index 0357010e..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/label.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var label: String?
-The label text bound to the input element.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/minute-step.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/minute-step.html deleted file mode 100644 index 5073b48e..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/minute-step.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var minuteStep: Int
-The increment used to build the hour view.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/name.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/name.html deleted file mode 100644 index 68c3ce8c..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/name.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var name: String?
-The name attribute of the generated HTML input element.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/placeholder.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/placeholder.html deleted file mode 100644 index f59806f7..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/placeholder.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var placeholder: String?
-The placeholder for the date/time input.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/readonly.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/readonly.html deleted file mode 100644 index c39736fe..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/readonly.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var readonly: Boolean?
-Determines if the date/time input is read-only.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/remove-event-listeners.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/remove-event-listeners.html deleted file mode 100644 index 895dbb10..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/remove-event-listeners.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -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/docs/api/pl.treksoft.kvision.form.time/-date-time/set-event-listener.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/set-event-listener.html deleted file mode 100644 index 40d2ae32..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/set-event-listener.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -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/docs/api/pl.treksoft.kvision.form.time/-date-time/show-meridian.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/show-meridian.html
deleted file mode 100644
index 790fc0e3..00000000
--- a/docs/api/pl.treksoft.kvision.form.time/-date-time/show-meridian.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-var showMeridian: Boolean
-Determines if meridian views are visible in day and hour views.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/show-popup.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/show-popup.html deleted file mode 100644 index 5755e211..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/show-popup.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -open fun showPopup(): Unit
-Open date/time chooser popup.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/size.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/size.html deleted file mode 100644 index f5b077e0..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/size.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -open var size: InputSize?
-Overrides FormControl.size
-Input control size.
-Getter
-
Input control size.
- -Setter
-
Input control size.
- - - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/today-btn.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/today-btn.html deleted file mode 100644 index 9ad572a6..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/today-btn.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var todayBtn: Boolean
-Determines if Today button should be visible.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/today-highlight.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/today-highlight.html deleted file mode 100644 index 4b3281d3..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/today-highlight.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var todayHighlight: Boolean
-Determines if the current day should be highlighted.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/validation-info.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/validation-info.html deleted file mode 100644 index 8fd72073..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/validation-info.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -val validationInfo: HelpBlock
-Overrides FormControl.validationInfo
-Validation info component.
- - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/value.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/value.html deleted file mode 100644 index 873f1072..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/value.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -open var value: Date?
-Overrides DateFormControl.value
-Date/time input value.
-Getter
-
Date value.
- -Setter
-
Date value.
- - - diff --git a/docs/api/pl.treksoft.kvision.form.time/-date-time/week-start.html b/docs/api/pl.treksoft.kvision.form.time/-date-time/week-start.html deleted file mode 100644 index 6dd03632..00000000 --- a/docs/api/pl.treksoft.kvision.form.time/-date-time/week-start.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -var weekStart: Int
-Day of the week start. 0 (Sunday) to 6 (Saturday).
- - -- cgit