add, detach section to existing lightbox ???

can i add section to already existing lightbox

scheduler.config.lightbox.sections=[ {name:"description", height:130, map_to:"text", type:"textarea" , focus:true}, {name:"time", height:72, type:"time", map_to:"auto"} ];

and in onBeforeLightbox add section

{name:"custom", height:200, type:"form", map_to:"section_id" , button:"help"}

and in onAfterLightbox detach section

{name:"custom", height:200, type:"form", map_to:"section_id" , button:"help"}


Check following sample. Note that it can be improved — there is no need to reset lightbox everytime (as it’s possible that we are opening event with the same type), you don’t need to store to ‘fixed’ configurations. You can have one array of all possible sections and another one will dynamically populate according to your need/event type.


<script src="../../codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../../codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">
html, body{ margin:0px; padding:0px; height:100%; overflow:hidden; }
[/code] Best regards, Ilya

thanks …

something similar allready use and again thanks