Styles (script)

Use setStyle(name, value) to assign style attributes to the label control.

	obj.setStyle("color", "red");
	obj.setStyle("font-weight", "bold");
	obj.setStyle("background", "#ddd");
	obj.setStyle("text-align", "right");
	obj.setStyle("width", "200px");

Back to label examples, all examples