open class DateTime : SimplePanel, KDateFormControl
Form field date/time chooser component.
DateTime(value: KDate? = 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: KDate?
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(): KDate?
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: KDate? = 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. |