Categories | Question details Back To List | ||||||||
Custom View + dhtmlxScheduler Hello, Currently I am embedding dhtmlxScheduler with ruby on rails, functionality like day, week and month working absolutely fine, but when i add a new tab called agenda some how i am not able to create a view for it. Some how i looked in the workweek example but still not able to create as per my requirement, Like i just don't want to display the time and date. Can I know how we can insert our own template? Thanks Abhishek Shukla Answer posted by Support on Aug 11, 2009 09:52 It is possible to catch the moment , when user switch scheduler to the new tab and execute your custom rendering logic instead of built-in one. Unfortunately this topic is not described in existing documentation - we will prepare new topic for documentation and related sample in few days. Answer posted by Abhishek Shukla on Aug 11, 2009 10:23 Hello Thanks a ton for your reply, Actually it will be great if you can guide me a basic step so that I can move forward. Thanks Abhishek Shukla Answer posted by Support on Aug 19, 2009 03:05 Please check attached extension , it shows similar use-case The key points a) on the html page add the custom tab to the html snippet <div class="dhx_cal_date"></div> <div class="dhx_cal_tab" name="agenda_tab" style="right:280px;"></div> <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div> b) define method for the new tab scheduler.agenda_view=function(mode){ if (mode){ //agenda tab activated } else { //agenda tab de-activated } } method name is a [name of tab]+"_view" If such method exists - the scheduler will call it instead of rendering view itself. Parameter of method is true when focus comes to the tab from other one, and false when focus moved to another tab. c) put any custom html inside the data part of the scheduler, the container of data part can be located as scheduler._els["dhx_cal_data"][0] Attachments (1)
|