Class
zebkit.ui.date.MonthDaysGrid
extends <zebkit.ui.grid.Grid> |
<zebkit.ui.date> |
Shows the given month and year days. This is one of the core class that is widely used with other date UI component.
zebkit.ui.date.MonthDaysGrid
([date], [month], [year]
)
Parameters:
-
[date]
<Date>year to specify month and year to be shown
-
[month]
<Integer>a month to be shown
-
[year]
<Integer>an year to be shown
public | void | addTagsDecoration (tags) |
public | <Boolean> | canMonthBeShown (month, year) |
protected
|
void | dateSelected (item, b) |
public | <Boolean> | hasMonthShown ( ) |
public | <Boolean> | isDaySelectable (item) |
public | void | retagModel ( ) |
public | void | selectDate (day, month, year) |
public | void | setCurrentMonthToShow ( ) |
public | void | setDateRange (min, max) |
public | void | setMaxDate (date) |
public | void | setMinDate (date) |
public | void | setMonthToShow ([date], [month], [year]) |
public | void | setNextMonthToShow ( ) |
public | void | setNextYearToShow ( ) |
public | void | setNextYearToShow ( ) |
public | void | setPrevMonthToShow ( ) |
public | void | setSelectedToShow ( ) |
public | void | setTagDecoration (tag, p) |
public | void | setTagger (tagger) |
public | void | setTagsDecoration (tags) |
public
chainable
addTagsDecoration (tags )
Add visual properties for the given tags set Parameters:
|
protected
void
dateSelected (item, b )
Day selected callback function. Parameters:
|
public
chainable
retagModel ( )
Re-tag the grid model. The process assign the following tags to grid model items:
|
public
chainable
selectDate (day, month, year )
Select the specified date and show appropriate month of selected date year. Parameters:
|
public
chainable
setCurrentMonthToShow ( )
Set the current date month shown. |
public
chainable
setMaxDate (date )
Set maximal possible selection date Parameters:
|
public
chainable
setMinDate (date )
Set minimal possible selection date Parameters:
|
public
chainable
setMonthToShow ([date], [month], [year] )
Set a month and an year with the given arguments. If no parameters have been passed the current date year and month will be set. Parameters:
|
public
chainable
setNextMonthToShow ( )
Set the next date month to show |
public
chainable
setNextYearToShow ( )
Set the next year with the current month to show. |
public
chainable
setNextYearToShow ( )
Set the previous year with the current month to show. |
public
chainable
setPrevMonthToShow ( )
Set the previous date month to show. |
public
chainable
setSelectedToShow ( )
Set the next year with the current month to show. |
public
chainable
setTagger (tagger )
Set days tagger function. Parameters:
|
public
chainable
setTagsDecoration (tags )
Set the visual properties for the tags. Parameters:
Example:
|































public
![]() month
Shown month |
public
![]() tagger
Custom tagger. The attribute is function that is called to tag the given day panel item. |
public
![]() year
Shown month year |
dateSelected
Fire when the given date has been selected
Parameters:
|
monthShown
Fire when the specified month of the given year has been shown with the component
Parameters:
|