DateTime

open class DateTime(    value: <ERROR CLASS>? = null,     name: String? = null,     format: String = "YYYY-MM-DD HH:mm",     label: String? = null,     rich: Boolean = false,     init: DateTime.() -> Unit? = null)

Form field date/time chooser component.

Parameters

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

init

an initializer extension function

Constructors

Link copied to clipboard
fun DateTime(    value: <ERROR CLASS>? = null,     name: String? = null,     format: String = "YYYY-MM-DD HH:mm",     label: String? = null,     rich: Boolean = false,     init: DateTime.() -> Unit? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun blur()
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <ERROR CLASS>)
Link copied to clipboard
open fun focus()
Link copied to clipboard
open fun getState(): <ERROR CLASS>?
Link copied to clipboard
open fun getValueAsString(): String?
Link copied to clipboard
open fun hidePopup()

Hides date/time chooser popup.

Link copied to clipboard
open fun removeEventListener(id: Int): <ERROR CLASS>
Link copied to clipboard
open fun removeEventListeners(): <ERROR CLASS>
Link copied to clipboard
open fun <T> setEventListener(block: <ERROR CLASS><T>.() -> Unit): Int
Link copied to clipboard
open fun setState(state: <ERROR CLASS>?)
Link copied to clipboard
open fun showPopup()

Open date/time chooser popup.

Link copied to clipboard
open fun subscribe(observer: (<ERROR CLASS>?) -> Unit): () -> Unit
Link copied to clipboard
open fun togglePopup()

Toggle date/time chooser popup.

Properties

Link copied to clipboard
var autofocus: <ERROR CLASS>

Determines if the date/time input is automatically focused.

Link copied to clipboard
var daysOfWeekDisabled: <ERROR CLASS>

Days of the week that should be disabled. Multiple values should be comma separated.

Link copied to clipboard
var disabledDates: <ERROR CLASS>

An array of disabled dates.

Link copied to clipboard
var enabledDates: <ERROR CLASS>

An array of enabled dates.

Link copied to clipboard
val flabel: <ERROR CLASS>
Link copied to clipboard
var focusOnShow: <ERROR CLASS>

Focus text input when the popup is opened.

Link copied to clipboard
var format: <ERROR CLASS>

Date/time format.

Link copied to clipboard
var ignoreReadonly: <ERROR CLASS>

Allow date picker for readonly component.

Link copied to clipboard
var inline: <ERROR CLASS>

Show as inline.

Link copied to clipboard
val input: DateTimeInput
Link copied to clipboard
val invalidFeedback: <ERROR CLASS>
Link copied to clipboard
var keepOpen: <ERROR CLASS>

Keep the popup open after selecting a date.

Link copied to clipboard
var label: <ERROR CLASS>

The label text bound to the input element.

Link copied to clipboard
var maxDate: <ERROR CLASS>?

Prevents date selection after this date.

Link copied to clipboard
var minDate: <ERROR CLASS>?

Prevents date selection before this date.

Link copied to clipboard
var placeholder: <ERROR CLASS>

The placeholder for the date/time input.

Link copied to clipboard
var readonly: <ERROR CLASS>

Determines if the date/time input is read-only.

Link copied to clipboard
var rich: <ERROR CLASS>

Determines if label can contain HTML code.

Link copied to clipboard
var showClear: <ERROR CLASS>

Determines if Clear button should be visible.

Link copied to clipboard
var showClose: <ERROR CLASS>

Determines if Close button should be visible.

Link copied to clipboard
var showTodayButton: <ERROR CLASS>

Determines if Today button should be visible.

Link copied to clipboard
var sideBySide: <ERROR CLASS>

Shows date and time pickers side by side.

Link copied to clipboard
var stepping: <ERROR CLASS>

The increment used to build the hour view.

Link copied to clipboard
open var value: <ERROR CLASS>

Date/time input value.