Categories | Question details Back To List | ||
dhtmlxScheduler Templates Hi! I have got a question considering the Templates in your Scheduler. First of all: Nice piece of your library !!! When i decided to change the "event_text" Template in any order, for my most used view "dayview" i got all these changes in "weekview" also. But in "mothview" not :) So where to edit the Template for "weekview" where i can build up my "event_text" in a different way than in "dayview"? I searched your Knowledgebase and i am realy going hand-in-hand with you documentation (used it all the time!) but i don't think there's a way descirpted... Thanks in advance, 2Fast4U Answer posted by Stanislav (support) on Oct 16, 2009 01:29 Because daily and weekly view renders events in the same way, they share the same template ( the next link can be helpful - http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxscheduler:settings_templates#templates_map ) You can add a bit of logic inside the template scheduler.templates.event_text = function(){ if (scheduler._mode == "day") do_something() else do_other_thing(); } Answer posted by 2Fast4UeXtrem on Oct 16, 2009 01:55 Oh, nice idea, don't know why i haven't tried it before, sorry! Nevertheless, would there be more templates within a new version in future? :-) Best wishes Answer posted by Stanislav (support) on Oct 16, 2009 03:41 The above link shows all templates, which will exist in the next version. They cover nearly all elements of scheduler, so we don't see any necessity in new templates. Do you have some suggestions ? Answer posted by 2Fast4UeXtrem on Oct 16, 2009 07:45 I just would suggest the mentioned template above! "Because daily and weekly view renders events in the same way, they share the same template" It would be more comfortable to let them render on their own so the workaround you provide above wouldn't be needed... No needing from me, just because you asked me :) By this way the event_header could also be differnet in day an week-view (just COULD not MUST :) ). I want to provide you my Example of using your tool, so perhaps you can see what could be the point of differ between day and week-view (event_text): In Dayview i write a whole set of informations about some activity or event... just for example "NAME, STREET, CITY, COUNTRY, PHONE NUMBER, and so on" and in week view, where is nto that much space, i just want to see the Name (and perhaps his Phone-Number). Okay, dumbass example... :-( I need better english ;) Answer posted by Stanislav (support) on Oct 19, 2009 02:56 I will add it to the suggestion list, so maybe in some next version we will separate templates. |