<abstract> new ForEach(dimension, data, renderer, forEachLayout [, growMode] [, selectable] [, multipleSelection] [, themeClass])
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
dimension |
olympe.df.PVector2 | undefined | Dimension of the list (when undefined => auto grow is set to width and height) |
||
data |
olympe.df.Proxy.<olympe.df.SortedEnumerable> | olympe.df.SortedEnumerable | |||
renderer |
olympe.df.Proxy.<olympe.ui.std.ForEach.ForEachRenderer> | olympe.ui.std.ForEach.ForEachRenderer | |||
forEachLayout |
olympe.df.Proxy.<olympe.ui.std.ForEachLayout> | olympe.ui.std.ForEachLayout | |||
growMode |
olympe.df.Proxy.<olympe.ui.common.GrowMode> | olympe.ui.common.GrowMode |
<optional> |
||
selectable |
olympe.df.POBoolean | boolean |
<optional> |
false | |
multipleSelection |
olympe.df.POBoolean | boolean |
<optional> |
false | |
themeClass |
olympe.df.POString | string |
<optional> |
- Deprecated:
-
- Use
olympe.ui.std.VerticalLayout
orolympe.ui.std.ForEachLimited
instead.
- Use
Members
-
growMode :olympe.df.Proxy.<olympe.ui.common.GrowMode>|olympe.ui.common.GrowMode
-
Type:
Methods
-
applyTheme()
-
-
clearSelection()
-
Clear selection
Returns:
-
getSelectedIndex()
-
Returns:
First selected index
- Type
- olympe.df.Proxy.<string> | string
-
getSelectedIndexes()
-
Returns:
List of selected indexes
- Type
- olympe.df.Map.<string>
-
getSelectedValue()
-
Returns:
First selected value
- Type
- olympe.df.Proxy.<T> | T
-
getSelectedValues()
-
Returns:
List of selected values
- Type
- olympe.df.Enumerable.<T>
-
selectAll()
-
Select all elements of the ForEach (if multiple selection is allowed)
Returns:
-
setData(data)
-
Sets the list data
Parameters:
Name Type Description data
olympe.df.SortedEnumerable Returns:
-
setDimension()
-
Returns:
-
setEvenItemThemeClass(themeClass)
-
Parameters:
Name Type Description themeClass
olympe.df.POString | string Returns:
-
setGrowMode(growMode)
-
Sets the grow mode
Parameters:
Name Type Description growMode
olympe.df.Proxy.<olympe.ui.common.GrowMode> | olympe.ui.common.GrowMode Returns:
-
setListLayout(forEachLayout)
-
Set the layout of this list
Parameters:
Name Type Description forEachLayout
olympe.df.Proxy.<olympe.ui.std.ForEachLayout> | olympe.ui.std.ForEachLayout Returns:
-
setMultipleSelection(multipleSelection)
-
Parameters:
Name Type Description multipleSelection
olympe.df.POBoolean | boolean Returns:
-
setOddItemThemeClass(themeClass)
-
Parameters:
Name Type Description themeClass
olympe.df.POString | string Returns:
-
setRenderer(renderer)
-
Sets the row renderer function
Parameters:
Name Type Description renderer
olympe.df.Proxy.<olympe.ui.std.ForEach.ForEachRenderer> | olympe.ui.std.ForEach.ForEachRenderer Returns:
-
setSelectable(selectable)
-
Parameters:
Name Type Description selectable
olympe.df.POBoolean | boolean Returns:
-
setSelectedItemThemeClass(themeClass)
-
Parameters:
Name Type Description themeClass
olympe.df.POString | string Returns:
Type Definitions
-
ForEachRenderer(value, index, rank, map, themeClass)
-
Parameters:
Name Type Description value
* index
string rank
olympe.df.PONumber map
olympe.df.SortedEnumerable themeClass
olympe.df.POString Returns: