DateTimeInput

open class DateTimeInput(value: <ERROR CLASS>?, format: String, className: String?, init: DateTimeInput.() -> Unit?)

Basic date/time chooser component.

Parameters

value

date/time input value

format

date/time format (default YYYY-MM-DD HH:mm)

className

CSS class names

init

an initializer extension function

Constructors

DateTimeInput
Link copied to clipboard
fun DateTimeInput(value: <ERROR CLASS>? = null, format: String = "YYYY-MM-DD HH:mm", className: String? = null, init: DateTimeInput.() -> Unit? = null)

Types

Companion
Link copied to clipboard
object Companion

Functions

afterDestroy
Link copied to clipboard
open fun afterDestroy()
afterInsert
Link copied to clipboard
open fun afterInsert(node: <ERROR CLASS>)
bindAllJQueryListeners
Link copied to clipboard
open fun bindAllJQueryListeners()
blur
Link copied to clipboard
open fun blur()

Makes the input element blur.

buildClassSet
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <ERROR CLASS>)
focus
Link copied to clipboard
open fun focus()

Makes the input element focused.

getState
Link copied to clipboard
open fun getState(): <ERROR CLASS>?
getValueAsString
Link copied to clipboard
fun getValueAsString(): String?

Get value of date/time input control as String

hidePopup
Link copied to clipboard
open fun hidePopup()

Hides date/time chooser popup.

removeAllJQueryListeners
Link copied to clipboard
open fun removeAllJQueryListeners()
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()

Toggles date/time chooser popup.

Properties

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

Determines if the text 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.

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

Determines if the field is disabled.

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.

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: <ERROR CLASS>
keepOpen
Link copied to clipboard
var keepOpen: <ERROR CLASS>

Keep the popup open after selecting a date.

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.

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

The name attribute of the generated HTML input element.

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.

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.

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

The size of the input.

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

The increment used to build the hour view.

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

The validation status of the input.

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

Date/time input value.