You just set the class's options sub-properties. http://jsfiddle.net/Ronny/AVtyc/ Works on any Mootools release I've tried.
On Nov 4, 3:20 pm, moleculezz <[email protected]> wrote: > Ohno.. is there any other way to make it work? > > On Nov 4, 2:17 pm, Oskar Krawczyk <[email protected]> wrote: > > > > > > > > > I believe Options was to be read-only - at least this was the idea of it. > > > O. > > > ___ > > > Oskar Krawczykhttp://nouincolor.com > > > On Thu, Nov 4, 2010 at 2:07 PM, moleculezz <[email protected]> wrote: > > > Ok.. so I continued my search and came across this piece of code. > > > > myCal.setOptions({blocked: ['14-30 11 2010']}); > > > > So now it works, but not completely like it should. > > > What happens is, when I click on the button to popup the calendar it > > > does allow me to select the dates I specified to be blocked. But when > > > I click on the arrow to go to the next month and click again on the > > > arrow to go back to the previous month, it shows the blocked dates. > > > > How can I solve this problem? > > > > On Nov 4, 1:51 pm, moleculezz <[email protected]> wrote: > > > > Oh, and btw I'm using mootools 1.12, can't upgrade at the moment > > > > > On Nov 4, 1:40 pm, moleculezz <[email protected]> wrote: > > > > > > Hello, > > > > > > I am pretty new at mootools. But I have a problem with a calendar > > > > > component. The class has some "options". And the calendar creates the > > > > > object with specific options set. I want to change one of the option > > > > > values after the object has already been created. > > > > > > I did figure out that the class uses "this.setOptions(options)" in > > > > > "initialize". So my question is how do you re initialize with the new > > > > > option value? > > > > > > I figured this was my problem since I was able to change the option > > > > > value but it would not take effect.
