TitlePos - property of the PmfObject object
Description:
Position of the Title area of the Pmf object.
Values:
left (default) - Displayed name will be to the left from the input.
right - Displayed name will be to the
right from the input. This is functional so far only for
PmfBool.
no - The name
will not be displayed and the inputbox will be expanded to the left to occupy its space.
This value may not be set if in the
CreateItem method the
sTitle parameter is not set (or is set to
null).
Note:
Property access
for read and write.
It is possible to write into this property only if the
PmForm window has not been opened yet.
This property is also functional in
Web panels.
This property
is not functional for object:
PmfSepar.
Example1:
JavaScriptSelect and copy to clipboard
var oString = oForm.CreateItem("string", "IdStr1", "Title", "TitlePos:no;");
var sTitlePos = oString.TitlePos;
// Reading from the property
oString.TitlePos = "no";
// Writing into the property
Example2:
The text input configurator will be displayed as multiline over the area.
JavaScriptSelect and copy to clipboard
var oString = oForm.CreateItem("string", "IdStr", "", "TitlePos:no;Multiline:1;");
Example3:
Configurator of the checkbox type will be displayed in order to keep the displayed name to the right.
JavaScriptSelect and copy to clipboard
var oBool = oForm.CreateItem("bool", "IdBool", "Title", "TitlePos:right;");