I want to modify the height of one of textearea ? What's met

I want to modify the height of one of textearea ? What’s method use for this ?

what textarea and component do you mean ?

I’m two textarea in my forms and i want to modify the height of class dhx_cal_ltext only for one textarea.


Height can be set directly in the lightbox confiduration:


scheduler.config.lightbox.sections=[
{name:“description”, height:130, map_to:“text”, type:“textarea” , focus:true},





}



i’m use tis method but doesn’t works i want to make 0px for the class dhx_class_ltext only for some user

You can redefine scheduler.config.lightbox.sections when it is necessary. You can set different height here depending on user

it’s possible to make in the class css display=“none” for the class dhx_cal_ltext only for one textarea ?


You can redefine the render method of the textarea block as you need.


The original method is:


scheduler.form_blocks.textarea.render = function(sns){
var height=(sns.height||“130”)+“px”;
return “

”;
}


Please, see details here dhtmlx.com/dhxdocs/doku.php?id=d … tails_form




This method doesn’t works on my scheduler. I want to make display style none for my textarea.

up


Hello,


>> I want to make display style none for my textarea.


in this case you can try to add display:none property to the textarea tag:


scheduler.form_blocks.textarea.render = function(sns){


var height=(sns.height||“130”)+“px”;
return “

<textarea style=“display:none”>
”;
}

Which file because in the function init of index. This method doesn’t works.


Sorry for the misleading information:


scheduler.form_blocks.textarea.render = function(sns){


var height=(sns.height||“130”)+“px”;
return “

<textarea style=</FONT>“display:none>
”;
}
scheduler.form_blocks.textarea.focus = function(){}

thank you but i want to apply this method for the first textarea. I have two textarea.


In this case you create a new block that is based of existent - “textarea"


scheduler.form_blocks.textareaDis={
render:function(sns){
var height=(sns.height||“130”)+“px”;
return “

<textarea style=“display:none”>
”;
},
set_value:function(node,value,ev){
node.firstChild.value=value||”";
},
get_value:function(node,ev){
return node.firstChild.value;
},
focus:function(node){

}
}



Thank you for your help i’m used other method. Thanks