Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Change options after datepicker has been rendered #45

Open
RosanaRufer opened this issue Aug 30, 2016 · 1 comment
Open

Change options after datepicker has been rendered #45

RosanaRufer opened this issue Aug 30, 2016 · 1 comment

Comments

@RosanaRufer
Copy link

Hi I don't know how options could be modified after date picker has been rendered. It seems like it reaches the updateOptions method but they don't get updated. You can observe it in this Plunker:

https://embed.plnkr.co/jU3r1f/

@marygoryunova
Copy link

Had the same issue. For me it a was problem in picker.date.js (v3.5.6).
If failed because calendar.queue doesn`t include key, which I tried to update in options.

// The queue of methods that will be used to build item objects. calendar.queue = { min: 'measure create', max: 'measure create', now: 'now create', select: 'parse create validate', highlight: 'parse navigate create validate', view: 'parse create validate viewset', disable: 'deactivate', enable: 'activate' }

Failure method (type here is an option key)
calendar.queue[ type ].split( ' ' )

I fixed it just update updateOptions method from ng-pickadate.js (just exclude all unsupported key).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants