Class ListViewComponent
Related to:SoyWar.UIToolkit.Elements
/
Inherits from:objectObjectComponentBehaviourMonoBehaviourUIToolkitComponentUIToolkitComponent<ListView>BaseVerticalCollectionViewComponent<ListView>
/
Implemented in:SoyWar.UIToolkit.dll
Implements interfaces:IUIToolkitEvent<ListView>IEnumerable<ListView>IEnumerable
Description
Component linked toListView.
Syntax
[AddComponentMenu("UI Toolkit/Containers/List View", 4)]
public class ListViewComponent : BaseVerticalCollectionViewComponent<ListView>, IUIToolkitEvent<ListView>, IEnumerable<ListView>, IEnumerable
Properties
Name | Description |
---|---|
ItemsAddedEvent | This event is called for every item added to the itemsSource. Includes the item index. |
ItemsRemovedEvent | This event is called for every item added to the itemsSource. Includes the item index. |
Extension Methods
Inherited Members
Properties
Name | Description |
---|---|
ItemIndexChangedEvent | Called when an item is moved in the itemsSource. |
ItemsChosenEvent | Callback triggered when the user acts on a selection of one or more items, for example by double-clicking or pressing Enter. |
ItemsSourceChangedEvent | Called when the itemsSource is reassigned or changes size. |
SelectedIndicesChangedEvent | Callback triggered when the selection changes. |
SelectionChangedEvent | Callback triggered when the selection changes. |
OffEvent | This event is called when an element is removed. |
OnEvent | This event is called when an element is added. |
Document | |
OverrideHost | Chooses a template as host instead of the main document. |
SearchFrom | Targets children from the parent's container (indirect) or via the hierarchy (direct). |
Selector | |
Target | Targets the first, last or all active elements. |
Methods
Name | Description |
---|---|
GetEnumerator() | |
Set(TElement) | |
Unset(TElement) | |
AddCustomStyles(StyleSheet) | Adds custom style for all targeted elements. |
AddCustomStyles(params StyleSheet[]) | Adds custom styles for all targeted elements. |
Count() | Count the number of active elements |
ForceElementsUpdate() | Forces elements to be updated. |
RemoveCustomStyles(StyleSheet) | Removes custom style from all targeted elements. |
RemoveCustomStyles(params StyleSheet[]) | Removes custom styles from all targeted elements. |
SetSelectorFromText(string) | |
SetSelectorFromText(string, out string) | |
Validate() | Checks if the document and the selector is valid. |
Operators
Name |
---|
implicit operator TElement(UIToolkitComponent<TElement>) |