The Calendar widget is a simple and easy-to-use widget that displays links to posts by date. It allows the user to select a date from a graphical calendar.
- UI Type:
How to use calendar widget?
Check this guide for step by step process on how to use this widget...
For calendar widget, the related model should have following attributes types:
Next, create a query as follows (refer below images) and attach the query to the calendar widget.
- Properties 21
- Style 18
- Accent color for secondary bar and button backgrounds
- Alternate background for list
- Background for today button
- Background-color
- Button color for top bar
- Calendar border color
- Color
- Color for month header
- Color for today button
- Event background color
- Event border color
- Font Size
- List background hover
- Present day highlight
- Selected date background
- Text color for top bar
- Text-alignment
- Top bar background
- Events 7
- Functions 18
Properties
Style
Events
Function
getActiveDate ( ) →{ Date }
Returns the currently selected date.
Returns
The currently selected date.
gotoDate ( date: Date )
Selects the specified date in the calendar.
Parameters
Name | Type | Description |
---|---|---|
date | Date | The date to select. |
get ( name: String ) →{ Object }
Gets the value of the specified property.
Parameters
Name | Type | Description |
---|---|---|
name | String | The name of the property. |
Returns
The property's value.
isEnabled ( ) →{ Boolean }
Returns true if the widget is enabled.
Returns
True if enabled, otherwise false.
isHidden ( ) →{ Boolean }
Returns true if the widget is hidden.
Returns
True if hidden, otherwise false.
set ( name: String , value: Object )
Sets the value of the specified property.
Parameters
Name | Type | Description |
---|---|---|
name | String | The name of the property. |
value | Object | The new value. |
setEnabled ( Enabled: Boolean )
Enables/disables the widget.
Parameters
Name | Type | Description |
---|---|---|
Enabled | Boolean | True to enable the widget, false to disable. |
setStyle ( Object: Object )
Set the widget-style
Parameters
Name | Type | Description |
---|---|---|
Object | Object | properties |