Note
ამ გვერდზე წვდომა ავტორიზაციას მოითხოვს. შეგიძლიათ სცადოთ შესვლა ან დირექტორიების შეცვლა.
ამ გვერდზე წვდომა ავტორიზაციას მოითხოვს. შეგიძლიათ სცადოთ დირექტორიების შეცვლა.
Adds an option to a control.
Control types supported
Choice, Choices
Syntax
formContext.getControl(arg).addOption(option, index);
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
option |
Object | Yes | The option to add. The object contains the following: - text: String. The label for the option.- value: Number. The value for the option. |
index |
Number | No | The index position to place the new option in. If not provided, the option will be added to the end. |