new Part(elem)
Creates a WIND.Text.Part object.
Parameters:
Name | Type | Description |
---|---|---|
elem |
string | The ID of the object. |
Example
var part = new WIND.Text.Part("part1");
Methods
-
blink()
-
The part will blink.
Example
var part = new WIND.Text.Part("part1"); part.blink();
-
bold()
-
The part is diplayed in bold.
Example
var part = new WIND.Text.Part("part1"); part.bold();
-
hide()
-
Hides the Part.
Example
var part = new WIND.Text.Part("part1"); part.hide();
-
highlight()
-
Hightlight the Part.
Example
var part = new WIND.Text.Part("part1"); part.highlight();
-
italicize()
-
The part is diplayed in italics.
Example
var part = new WIND.Text.Part("part1"); part.italicize();
-
setStyle(stylestring)
-
Put the part in a given style.
Parameters:
Name Type Description stylestring
string The CSS string that describes the new style of the part. It may contain: 'color', 'background-color', 'font-weight', 'font-style', 'font-size', 'text-decoration', 'cursor', 'border', 'border-top', 'border-right', 'border-bottom', 'border-left' and 'padding'. Example
var part = new WIND.Text.Part("part1"); part.setStyle("color:blue;text-decoration:underline");
-
show()
-
Displays the Part.
Example
var part = new WIND.Text.Part("part1"); part.show();
-
underline()
-
The part is underlined.
Example
var part = new WIND.Text.Part("part1"); part.underline();