Format - property of the PmfEnum object
Description:
The property returns or sets the format of the value that will be displayed in the object.
Values:
Object data type - Reference to the
PmFormat object.
This object enables formatting of the
PmfEnum object value according to the specified format.
null data type - The
PmFormat object is not set.
The value of the
PmfEnum object will not be formatted.
Note:
Property access
for read and write.
This property is also functional in
Web panels.
If the
format string contains a table of rows
Rows:{keyval}, then the
PmfEnum object is simultaneously populated with all the rows listed in the table.
The formatting string can also be entered in the
sProps parameter of the
CreateItem method.
Not all format string keys are supported at this moment - for example the keys
LTxt:ss and
RTxt:ss.
Example:
JavaScriptSelect and copy to clipboard
oEnum.Format = Pm.CreatePmFormat("Type:Enum;Rows:{0:{v:1;n:red};1:{v:2;n:green};2:{v:3;n:blue};};");
// Writing into the property
oEnum.Format = "Type:Enum;Rows:{0:{v:1;n:red};1:{v:2;n:green};2:{v:3;n:blue};};";
// Writing into the property
var oFormat = oEnum.Format;
// Reading from the property
oEnum.Format = null;
// Cancels the formatting of the value of the PmfEnum object