Hi,
Is there any way I can define a multiline name inside of a label which is into a toolbar component?
var toolbar_grid_def = [
{
type:"label",
label:"<div><label>Aaaaaaaaaaaaaaaaaaaaaaaaaaaaa</label><br/><label >Bbbbbbbbbbbbbbbbbbbbbbbbb</label></div>",
id:"nav_path2",
align:"left"
},
Thanks
Hi,
by default the label is single-lined. However, you may modify the css for the labels in a toolbar:
<style>
.two_lines .dhx_el_label {
line-height:21px; /*43px is default*/
}
</style>
“two_lines” should be set as css property in the toolbar initialization:
[code]dhx.ui({
view:“toolbar”,
css:“two_lines”,
…
data:[
{
type:“label”,
label:“
Aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Bbbbbbbbbbbbbbbbbbbbbbbbb
”,
…
},
…
]
});[/code]