diff --git a/clndr/clndr-tests.ts b/clndr/clndr-tests.ts index 828dfdf2a7..018d9a6000 100644 --- a/clndr/clndr-tests.ts +++ b/clndr/clndr-tests.ts @@ -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() diff --git a/clndr/index.d.ts b/clndr/index.d.ts index 12d84a6088..3e9fbbb09c 100644 --- a/clndr/index.d.ts +++ b/clndr/index.d.ts @@ -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.