{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#text]
The textual content of the style.{td}{tr}{tbody}{table}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#getName]\()
Gets the name of the style.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=8703B44F-FAA4-43EC-93A1-E9C9C57B8541}{tr:id=name}{td}h6.text{td}{tr}{tr:id=des}{td}{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_des|text=|trigger=button}{sub-section}{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_des|trigger=none|class=sIndent}
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientservoy sSummary12%30%58%height: 30px;3Property SummaryThe textual content of the style.servoy sSummary12%30%58%height: 30px;3Methods SummaryGets the name of the style.Returns the UUID of the style objectpropertyservoy sDetail2100%height:30px2Property Detailstextname
text
dessIndent
The textual content of the style.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_ret|text=|trigger=button}{sub-section}{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_see|text=|trigger=button}{sub-section}{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_see|text=|trigger=button}{sub-section}{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_sam|text=|trigger=button}{sub-section}{sub-section:8703B44F-FAA4-43EC-93A1-E9C9C57B8541_sam|class=sIndent|trigger=none}{code:language=javascript}
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());
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=3036D3A3-97AA-4E0D-B9B1-E8493C918AF2}{tr:id=name}{td}h6.getName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_des|text=|trigger=button}{sub-section}{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_des|trigger=none|class=sIndent}ret
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_ret|text=|trigger=button}{sub-section}{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_ret|trigger=none|class=sIndent}[String] -- A String holding the name of the style.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_see|text=|trigger=button}{sub-section}{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_see|text=|trigger=button}{sub-section}{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_sam|text=|trigger=button}{sub-section}{sub-section:3036D3A3-97AA-4E0D-B9B1-E8493C918AF2_sam|class=sIndent|trigger=none}{code:language=javascript}
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());
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}ret
Returns
sIndent A String holding the name of the style.clients