new Options()
Every option of the Rollist.Options type has associated a property of the control. For instance, the option:
allowActions {string}, customizes the actions the user can perform once the user clicks or touches the controlis associated with the property:
AllowActions {string}, customizes the actions the user can perform once the user clicks or touches the controlwhich means that the following statements are equivalent:
oRollist.Options = {allowActions: "scroll"}where oRollist is an object of Rollist type
oRollist.SetOptions({allowActions: "scroll"})
oRollist.AllowActions = "scroll"
oRollist.SetAllowActions("scroll")
Members
(static) allowActions :string
The format of the property is:
"action(shortcut,shortcut,...),action(shortcut,shortcut,...)..."where
- "action", defines the action to perform (as defined below)
Action Description Flags "scroll" Scrolls the control by drag and drop - "shortcut", defines the event's button or/and the modifier-keys that are required to perform the action. The "shortcut" is a combination of none, one or more of the following values:
- "Shift", indicates that the SHIFT key is pressed
- "Ctrl" or "Control", indicates that the CTRL key is pressed
- "Alt" or "Menu", indicates that the ALT key is pressed
- "Meta" , indicates that the META key is pressed
- "LButton", specifies that the mouse's left-button is pressed
- "RButton", specifies that the mouse's right-button is pressed
- "MButton", specifies that the mouse's middle/wheel-button is pressed
- "Long", specifies that the action requires a "long" click or touch before it begins
- "Double", specifies that the action requires a "double" click before it begins (this flag is available for non-dragable actions only such as "edit")
- "+", indicates AND between values
The allowActions field is mapped to the AllowActions property, which means that the following statements are equivalent:
oRollist.Options = {allowActions: "scroll(long)"}
oRollist.SetOptions({allowActions: "scroll(long)"})
oRollist.AllowActions = "scroll(long)"
oRollist.SetAllowActions("scroll(long)")
Type:
- string
Example
null {null}, indicates the control's default allowActions value
"" {string}, specifies that no operation is allowed once the user clicks or touches the control
"scroll" {string}, specifies that only "scroll" operation is allowed, no matter of the event's button or modifier-keys is pressed.
allowActions
(static) allowFilterInput :Rollist.AllowFilterInputEnum
The allowFilterInput field is mapped to the AllowFilterInput property, which means that the following statements are equivalent:
oRollist.Options = {allowFilterInput: "key,disable"}
oRollist.SetOptions({allowFilterInput: "key,disable"})
oRollist.AllowFilterInput = "key,disable oRollist.SetAllowFilterInput("key,disable")
Type:
Example
null {null} or "hide" {string} or exontrol.Rollist.AllowFilterInputEnum.exHide {AllowFilterInputEnum} or 0 {number}, no filter input is visible (by default)
"always" {string} or exontrol.Rollist.AllowFilterInputEnum.exAlwaysVisible {AllowFilterInputEnum} or 1 {number}, indicates that the filter input is always visible
"key,disable" {string} or (exontrol.Rollist.AllowFilterInputEnum.exShowOnAnyKey | exontrol.Rollist.AllowFilterInputEnum.exDisableHighlightOccurences) {AllowFilterInputEnum} or 0x12 {number}, shows the filter input when the user presses any key and disables the highlighting of all occurrences of the typed text in the items
allowFilterInput
(static) cyclic :boolean
The cyclic field is mapped to the Cyclic property, which means that the following statements are equivalent:
oRollist.Options = {cyclic: true}
oRollist.SetOptions({cyclic: true})
oRollist.Cyclic = true
oRollist.SetCyclic(true)
Type:
- boolean
Example
false {boolean}, no effect (by default)
true {boolean}, specifies that the items are displayed in a continuous loop
cyclic
(static) data :any
- A String expression that specifies the URL to a CSV file (the string includes no eof, eor or str fields of ImportOptions type), such as: "data.csv"
- A String expression in CSV format (eof, eor or str fields of ImportOptions type define delimiters and text qualifiers to be used in the CSV data), such as: "German\nEnglish\nFrench"
- An object that includes the "files" member of FileList type (a local file), such as: a drag-and-drop operation to drop a local file into the control can import data from that file
- An array of data to load, such as: ["German", "English", "French"]
The data field is mapped to the Data property, which means that the following statements are equivalent:
oRollist.Options = {data: "sample.csv"}
oRollist.SetOptions({data: "sample.csv"})
oRollist.Data = "sample.csv"
oRollist.SetData("sample.csv")
Type:
- any
Example
"sample.csv" {string}, imports data from sample.csv file using the default delimiters and text qualifiers for CSV format as defined in the ImportOptions type
["USA", "Germany", "France"] {array}, imports data from an array of strings
data
(static) filter :any
The filter field is mapped to the Filter property, which means that the following statements are equivalent:
oRollist.Options = {filter: "icon"}
oRollist.SetOptions({filter: "icon"})
oRollist.Filter = "icon"
oRollist.SetFilter("icon")
Type:
- any
Example
null {null} or "" {string}, clears the fiter if any
"icon" {string}, displays only items that include the word 'icon' in their content
filter
(static) misc :MiscellaneousOptions
The misc field is mapped to the Misc property, which means that the following statements are equivalent:
oRollist.Options = {misc: {hAlign: 1}}
oRollist.SetOptions({misc: {hAlign: 1}})
oRollist.Misc = {hAlign: 1}
oRollist.SetMisc({hAlign: 1})
Type:
Example
null {null}, indicates the control's default miscellaneous options
{hAlign: 1} {object}, specifies that the items are arranged horizontally
misc
(static) select :any
The select field is mapped to the Select property, which means that the following statements are equivalent:
oRollist.Options = {select: 0}
oRollist.SetOptions({select: 0})
oRollist.Select = 0
oRollist.SetSelect(0)
Type:
- any
Example
0 {number} or null {null}, selects the first item based on its position in the Items collection (0-based)
"itemId" {string}, selects the item based on its identifier/key
select
(static) smooth :number
The smooth field is mapped to the Smooth property, which means that the following statements are equivalent:
oRollist.Options = {smooth: 125}
oRollist.SetOptions({smooth: 125})
oRollist.Smooth = 125
oRollist.SetSmooth(125)
Type:
- number
Example
0 {number}, no smooth changes once the control goes from a layout to another
125 {number}, specifies that a smooth-transition is performed from a layout to another for 125 ms.
smooth
(static) wheelChange :number
- Setting wheelChange to 0 disables mouse wheel actions, preventing the control from changing when the wheel is scrolled
- Setting wheelChange to a positive number, such as 5, increases the control's value by that amount each time the wheel is rotated, enabling faster adjustments
By modifying this value, you can fine-tune the control's responsiveness, making it easier for users to perform precise changes or larger adjustments as needed.
The wheelChange field is mapped to the WheelChange property, which means that the following statements are equivalent:
oRollist.Options = {wheelChange: 5}
oRollist.SetOptions({wheelChange: 5})
oRollist.WheelChange = 5
oRollist.SetWheelChange(5)
Type:
- number
Example
0 {number}, locks any action the mouse's wheel performs
1 {number}, scrolls the control by 1-item when mouse's wheel is rotated
wheelChange