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

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

Link copied to clipboard
object Companion

Functions

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

Makes the input element blur.

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

Makes the input element focused.

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

Get value of date/time input control as String

Link copied to clipboard
open fun hidePopup()

Hides date/time chooser popup.

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

Toggles date/time chooser popup.

Properties

Link copied to clipboard
var autofocus: <ERROR CLASS>

Determines if the text 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
open var disabled: <ERROR CLASS>

Determines if the field is disabled.

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

Keep the popup open after selecting a date.

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
open var name: <ERROR CLASS>

The name attribute of the generated HTML input element.

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 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
open var size: <ERROR CLASS>

The size of the input.

Link copied to clipboard
var stepping: <ERROR CLASS>

The increment used to build the hour view.

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

The validation status of the input.

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

Date/time input value.