Child pages
  • JSStyle

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{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=5CF5D25E-46CE-44B9-97CF-7948BAFA5623}{tr:id=name}{td}h6.text{td}{tr}{tr:id=des}{td}{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_des|text=|trigger=button}{sub-section}{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_des|trigger=none|class=sIndent}
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy 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 object

propertyservoy 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:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_ret|text=|trigger=button}{sub-section}{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_see|text=|trigger=button}{sub-section}{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_see|text=|trigger=button}{sub-section}{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_sam|text=|trigger=button}{sub-section}{sub-section:5CF5D25E-46CE-44B9-97CF-7948BAFA5623_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=BAD0BB09-D009-4B26-9E37-13DFC4171EF7}{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:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_des|text=|trigger=button}{sub-section}{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_des|trigger=none|class=sIndent}
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

functionservoy sDetail2100%height:30px2Methods DetailsgetNamename

getName()

dessIndent
Gets the name of the style.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_ret|text=|trigger=button}{sub-section}{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_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:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_see|text=|trigger=button}{sub-section}{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_see|text=|trigger=button}{sub-section}{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_sam|text=|trigger=button}{sub-section}{sub-section:BAD0BB09-D009-4B26-9E37-13DFC4171EF7_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

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowgetUUIDname

getUUID()

dessIndent
Returns the UUID of the style object
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow