DateTime

open class DateTime(value: <ERROR CLASS>?, name: String?, format: String, label: String?, rich: Boolean, init: DateTime.() -> Unit?)

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

DateTime
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

Companion
Link copied to clipboard
object Companion

Functions

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

Hides date/time chooser popup.

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

Open date/time chooser popup.

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

Toggle date/time chooser popup.

Properties

autofocus
Link copied to clipboard
var autofocus: <ERROR CLASS>

Determines if the date/time input is automatically focused.

daysOfWeekDisabled
Link copied to clipboard
var daysOfWeekDisabled: <ERROR CLASS>

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

disabledDates
Link copied to clipboard
var disabledDates: <ERROR CLASS>

An array of disabled dates.

enabledDates
Link copied to clipboard
var enabledDates: <ERROR CLASS>

An array of enabled dates.

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

Focus text input when the popup is opened.

format
Link copied to clipboard
var format: <ERROR CLASS>

Date/time format.

ignoreReadonly
Link copied to clipboard
var ignoreReadonly: <ERROR CLASS>

Allow date picker for readonly component.

inline
Link copied to clipboard
var inline: <ERROR CLASS>

Show as inline.

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

Keep the popup open after selecting a date.

label
Link copied to clipboard
var label: <ERROR CLASS>

The label text bound to the input element.

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

Prevents date selection after this date.

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

Prevents date selection before this date.

placeholder
Link copied to clipboard
var placeholder: <ERROR CLASS>

The placeholder for the date/time input.

readonly
Link copied to clipboard
var readonly: <ERROR CLASS>

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

rich
Link copied to clipboard
var rich: <ERROR CLASS>

Determines if label can contain HTML code.

showClear
Link copied to clipboard
var showClear: <ERROR CLASS>

Determines if Clear button should be visible.

showClose
Link copied to clipboard
var showClose: <ERROR CLASS>

Determines if Close button should be visible.

showTodayButton
Link copied to clipboard
var showTodayButton: <ERROR CLASS>

Determines if Today button should be visible.

sideBySide
Link copied to clipboard
var sideBySide: <ERROR CLASS>

Shows date and time pickers side by side.

stepping
Link copied to clipboard
var stepping: <ERROR CLASS>

The increment used to build the hour view.

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

Date/time input value.