JSStyle

Properties Summarized

TypeNameSummary

The textual content of the style.

Methods Summarized

TypeNameSummary

Gets the name of the style.

Returns the UUID of the style object

Properties Detailed

text

The textual content of the style.

Type String

Sample

var st = solutionModel.newStyle('myStyle','form { background-color: yellow; }');
st.text = st.text + 'field { background-color: blue; }';
form.styleName = 'myStyle';
application.output('Style name is: ' + st.getName());

Methods Detailed

getName()

Gets the name of the style.

Returns: String A String holding the name of the style.

Sample

var st = solutionModel.newStyle('myStyle','form { background-color: yellow; }');
st.text = st.text + 'field { background-color: blue; }';
form.styleName = 'myStyle';
application.output('Style name is: ' + st.getName());

getUUID()

Returns the UUID of the style object

Returns: UUID

Sample

var st = solutionModel.newStyle('myStyle','form { background-color: yellow; }');
application.output(st.getUUID().toString());

Last updated