| Function |
Return type |
Description |
| __construct($id:string) |
|
Create instance of option list. Use a unique ID by prefixing the value with the name of the extension.
|
| GetId() |
String |
Get ID of instance assigned using constructor. |
| GetClientId() |
String |
Get ID used client side. This is useful for interacting with the control using JavaScript. |
| AddOption($option:SMOptionListItem) |
|
Add option/item to the option list. See description for SMOptionListItem class for further information. |
| RemoveOption($id:string) |
|
Remove option with the specified unique ID. |
|
SetOptions($options:SMOptionListItem[])
|
|
Replace the internal collection of options. |
| GetOptions() |
SMOptionListItem[] |
Get the internal collection of options. |
| GetOption($id:string) |
SMOptionListItem |
Get option list item by unique ID. |
| SetAutoPostBack($value:boolean) |
|
Set True to have control perform a post back when user changes the value of the control. Set False to disable auto post back (default). |
| GetAutoPostBack() |
Boolean |
Get value indicating whether auto post back is enabled or not. |
| SetAttribute($attr:SMOptionListAttribute, $value:string) |
|
Set specified attribute using the SMOptionListAttribute enum. |
| GetAttribute($attr:SMOptionListAttribute) |
String |
Get specified attribute value. |
| SetSelectedValue($value:string) |
|
Specify value (not display value) automatically selected.
|
GetSelectedValue()
|
String
|
Get value selected after post back. If multiple selections have been made, each item is separated by semi colon (;).
|
PerformedPostBack()
|
Boolean
|
Returns True if the control caused a post back (possible when auto post back is enabled), otherwise False.
|
SetRender($value:boolean)
|
|
Set True (default) to have control rendered, False not to.
|
| GetRender() |
Boolean |
Get value indicating whether control will be rendered or not. |
| Render() |
String |
Get code representing the control. |