mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #14716 from jasperjn/master
Add options and render to clndr instance.
This commit is contained in:
@@ -71,6 +71,12 @@ const options: Clndr.ClndrOptions = {
|
||||
|
||||
const myCalendar = $('.parent-element').clndr(options);
|
||||
|
||||
myCalendar.options.constraints = {
|
||||
startDate: '2017-12-22',
|
||||
endDate: '2018-01-09'
|
||||
};
|
||||
myCalendar.render();
|
||||
|
||||
myCalendar
|
||||
.forward()
|
||||
.back()
|
||||
|
||||
Vendored
+8
@@ -13,6 +13,10 @@ export as namespace Clndr;
|
||||
* The clndr instance
|
||||
*/
|
||||
export interface ClndrInstance {
|
||||
/**
|
||||
* Get clndr options
|
||||
*/
|
||||
options: ClndrOptions;
|
||||
/**
|
||||
* Go to the next month
|
||||
*/
|
||||
@@ -55,6 +59,10 @@ export interface ClndrInstance {
|
||||
* calendar.
|
||||
*/
|
||||
removeEvents(filter: (event: any) => boolean): this;
|
||||
/**
|
||||
* Re-render of the calendar.
|
||||
*/
|
||||
render(): void;
|
||||
/**
|
||||
* Destroy the clndr instance. This will empty the DOM node containing the
|
||||
* calendar.
|
||||
|
||||
Reference in New Issue
Block a user