From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-date-time-input/index.html | 884 +++++++++++++++------ 1 file changed, 654 insertions(+), 230 deletions(-) (limited to 'api/pl.treksoft.kvision.form.time/-date-time-input/index.html') 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 index c4690ad6..504d9f9a 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time-input/index.html +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.time / DateTimeInput

DateTimeInput

-open class DateTimeInput : Widget, FormInput +open class DateTimeInput : SimplePanel, FormInput

Basic date/time chooser component.

Constructors

@@ -36,15 +36,6 @@ - - - - + + + + + + + + + + + + + + + + @@ -108,11 +135,38 @@ + + + + + + + + + + + + @@ -126,20 +180,20 @@ @@ -151,592 +205,962 @@

Date/time input value.

+ +
-

clearBtn

-
-var clearBtn: Boolean -

Determines if Clear button should be visible.

-

daysOfWeekDisabled

@@ -63,6 +54,24 @@
+

disabledDates

+
+var disabledDates: Array<Date> +

An array of disabled dates.

+
+

enabledDates

+
+var enabledDates: Array<Date> +

An array of enabled dates.

+

format

@@ -72,11 +81,29 @@
-

minuteStep

+

ignoreReadonly

-var minuteStep: Int -

The increment used to build the hour view.

+var ignoreReadonly: Boolean +

Allow date picker for readonly component.

+
+

maxDate

+
+var maxDate: Date? +

Prevents date selection after this date.

+
+

minDate

+
+var minDate: Date? +

Prevents date selection before this date.

-

showMeridian

+

showClear

+
+var showClear: Boolean +

Determines if Clear button should be visible.

+
+

showClose

+
+var showClose: Boolean +

Determines if Close button should be visible.

+
+

showTodayButton

-var showMeridian: Boolean -

Determines if meridian views are visible in day and hour views.

+var showTodayButton: Boolean +

Determines if Today button should be visible.

+
+

sideBySide

+
+var sideBySide: Boolean +

Shows date and time pickers side by side.

-

todayBtn

+

stepping

-var todayBtn: Boolean -

Determines if Today button should be visible.

+var stepping: Int +

The increment used to build the hour view.

-

todayHighlight

+

validationStatus

-var todayHighlight: Boolean -

Determines if the current day should be highlighted.

+open var validationStatus: ValidationStatus? +

The validation status of the input.

+

Inherited Properties

+ + +val children: MutableList<Component>
-

weekStart

+

children

-var weekStart: Int -

Day of the week start. 0 (Sunday) to 6 (Saturday).

-
-

Inherited Properties

+

Functions

+open fun afterInsert(node: VNode): Unit +

Method called after inserting Snabbdom vnode into the DOM.

+ +open fun focus(): Unit +

Makes the input element focused.

+ +fun getValueAsString(): String? +

Get value of date/time input control as String

+ +open fun refreshDatePicker(): Unit +open fun togglePopup(): Unit +

Toggles date/time chooser popup.

+ + +
-

draggable

+

afterDestroy

-var draggable: Boolean? -

Determines if the current widget is draggable.

+open fun afterDestroy(): Unit +

Method called after destroying Snabbdom vnode.

-

eventTarget

+

afterInsert

-var eventTarget: Widget?
-

id

+

blur

-var id: String? -

An ID attribute of generated HTML element.

+open fun blur(): Unit +

Makes the input element blur.

-

lastLanguage

+

focus

-var lastLanguage: String?
-

parent

+

getSnClass

-open var parent: Container? -

Parent of the current component.

+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

-

popoverOptions

+

getValueAsString

-var popoverOptions: PopoverOptions?
-

role

+

hidePopup

-var role: String? -

A role attribute of generated HTML element.

+open fun hidePopup(): Unit +

Hides date/time chooser popup.

-

surroundingSpan

+

refreshDatePicker

-var surroundingSpan: Boolean
-

title

+

showPopup

-var title: String? -

A title attribute of generated HTML element.

+open fun showPopup(): Unit +

Open date/time chooser popup.

-

tooltipOptions

+

togglePopup

-var tooltipOptions: TooltipOptions?
+

Inherited Functions

+ + +open fun addAll(children: List<Component>): SimplePanel +

Adds a list of components to the current container.

+ + + + + + + + + + + + + + + + + + + + + + + + +
-

visible

+

add

-open var visible: Boolean -

Visibility state of the current component.

+open fun add(child: Component): SimplePanel +

Adds given component to the current container.

-

vnode

+

addAll

-var vnode: VNode?
+

addInternal

+
+fun addInternal(child: Component): SimplePanel +

Protected and final method to add given component to the current container.

+
+

childrenVNodes

+
+open fun childrenVNodes(): Array<VNode> +

Returns the array of the children Snabbdom vnodes.

+
+

getChildren

+
+open fun getChildren(): List<Component> +

Returns a list of children of the current container.

+
+

remove

+
+open fun remove(child: Component): SimplePanel +

Removes given component from the current container.

+
+

removeAll

+
+open fun removeAll(): SimplePanel +

Removes all children from the current container.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
-

Functions

+

Extension Functions

+ + + + + + + + + + + + +fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button +

DSL builder extension function.

+ +fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu +

DSL builder extension function.

+ +fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
-

afterDestroy

+

addBsBgColor

-open fun afterDestroy(): Unit -

Method called after destroying Snabbdom vnode.

+fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit
+

addBsBorder

+fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit
-

afterInsert

+

addBsClearfix

-open fun afterInsert(node: VNode): Unit -

Method called after inserting Snabbdom vnode into the DOM.

+fun Component.addBsClearfix(): Unit
+

addBsColor

+fun Component.addBsColor(bsColor: BsColor): Unit
-

blur

+

addBsRounded

-open fun blur(): Unit -

Makes the input element blur.

+fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit
+

bold

+
+fun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Bold.() -> Unit)? = null): Bold +

DSL builder extension function.

-

changeValue

+

button

-open fun changeValue(): Unit
-

focus

+

buttonGroup

-open fun focus(): Unit -

Makes the input element focused.

+fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, classes: Set<String> = setOf(), init: (ButtonGroup.() -> Unit)? = null): ButtonGroup +

DSL builder extension function.

-

getSnAttrs

+

canvas

-open fun getSnAttrs(): List<StringPair> -

Returns list of element attributes in the form of a List.

+fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas +

DSL builder extension function.

-

getSnClass

+

chart

-open fun getSnClass(): List<StringBoolPair> -

Returns list of CSS class names for current widget in the form of a List.

+fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, classes: Set<String> = setOf(), init: (Chart.() -> Unit)? = null): Chart +

DSL builder extension function.

-

getValueAsString

+

checkBox

-fun getValueAsString(): String? -

Get value of date/time input control as String

+fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: (CheckBox.() -> Unit)? = null): CheckBox +

DSL builder extension function.

-

hidePopup

+

checkBoxInput

-open fun hidePopup(): Unit -

Hides date/time chooser popup.

+fun Container.checkBoxInput(value: Boolean = false, classes: Set<String> = setOf(), init: (CheckInput.() -> Unit)? = null): CheckBoxInput +

DSL builder extension function.

-

refreshDatePicker

+

contextMenu

-open fun refreshDatePicker(): Unit
-

refreshState

+

createInstance

-open fun refreshState(): Unit
-

render

+

dataContainer

-open fun render(): VNode -

Renders current component as a Snabbdom vnode.

+fun <M, C : Component, CONT : Container> Container.dataContainer(model: