Date Picker
A Date Picker is a graphical user interface widget, which allows the user to pick a date from the calendar.
Example
API Methods
setSize
Sets the size only using the parameters passed in.
- Method
- Usage
setSize(size: "small" | "medium" | "large"): void
//Sets the size of DatePicker to small
a8forms.DatePicker("datePickerId").setSize("small")
//Sets the size of DatePicker to medium
a8forms.DatePicker("datePickerId").setSize("medium")
//Sets the size of DatePicker to large
a8forms.DatePicker("datePickerId").setSize("large")
setVisibility
Sets the elements of the given category to visible in this view.
- Method
- Usage
setVisibility(visible: boolean): void
// setting the visibility true makes the element to visible
a8forms.DatePicker("datePickerId").setVisibility(true)
// setting the visibility false makes the element to not visible
a8forms.DatePicker("datePickerId").setVisibility(false)
setVisibilityCondition
Sets the hide condition
- Method
- Usage
setVisibilityCondition(condition: string): void
// Hides the string
a8forms.DatePicker("datepickerId").setVisibilityCondition("1 == 1");