GetClassType
Returns a type of the ApiComboBoxForm class.
Syntax
expression.GetClassType();
expression
- A variable that represents a ApiComboBoxForm class.
Parameters
This method doesn't have any parameters.
Returns
"comboBoxForm"
Example
This example gets a class type and inserts it into the document.
- Code
- Result
// How get a class type of ApiComboBoxForm.
// Retrieve class type of a created combobox object and display it.
let doc = Api.GetDocument();
let comboBoxForm = Api.CreateComboBoxForm({"key": "Personal information", "tip": "Choose your country", "required": true, "placeholder": "Country", "editable": false, "autoFit": false, "items": ["Latvia", "USA", "UK"]});
let paragraph = doc.GetElement(0);
paragraph.AddElement(comboBoxForm);
let classType = comboBoxForm.GetClassType();
paragraph = Api.CreateParagraph();
paragraph.AddText("Class type: " + classType);
doc.Push(paragraph);