Class RenderPropertyAsList
Renders Property As List Attribute.
Inherited Members
Namespace: Evergine.Common.Attributes
Assembly: Evergine.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class RenderPropertyAsList : RenderProperty
Constructors
RenderPropertyAsList(bool, bool, bool, string, string, string, string, string, string)
Initializes a new instance of the RenderPropertyAsList class.
Declaration
public RenderPropertyAsList(bool isItemEditable = true, bool isReorderable = true, bool useNameKey = false, string legend = null, string selectItemTitle = null, string itemsToSelect = null, string canDeleteItem = null, string onAddedItemAction = null, string onRemovedItemAction = null)
Parameters
Type | Name | Description |
---|---|---|
bool | isItemEditable | If the items must be editable. |
bool | isReorderable | If the list is reorderable. |
bool | useNameKey | If the list uses a key. |
string | legend | The text to be presented in the legend area. |
string | selectItemTitle | The text shown in the item selector. |
string | itemsToSelect | Method name of the items to select. |
string | canDeleteItem | Method name of every item, indicating whether it can be deleted. |
string | onAddedItemAction | Optional method called after a new item is added. |
string | onRemovedItemAction | Optional method called after a new item is removed. |
Fields
AddItemAction
Optional method called after a new item is added.
Declaration
public string AddItemAction
Field Value
Type | Description |
---|---|
string |
CanDeleteItem
The property name of the item indicating whether the item can be deleted.
Declaration
public string CanDeleteItem
Field Value
Type | Description |
---|---|
string |
IsItemEditable
Gets or sets a value indicating whether this list item is editable.
Declaration
public bool IsItemEditable
Field Value
Type | Description |
---|---|
bool |
|
IsReorderable
Gets or sets a value indicating whether the list is reorderable.
Declaration
public bool IsReorderable
Field Value
Type | Description |
---|---|
bool |
|
ItemsToSelect
Gets the available items to be displayed.
Declaration
public string ItemsToSelect
Field Value
Type | Description |
---|---|
string |
Legend
The widget's legend.
Declaration
public string Legend
Field Value
Type | Description |
---|---|
string |
RemoveItemAction
Optional method called after a new item is removed.
Declaration
public string RemoveItemAction
Field Value
Type | Description |
---|---|
string |
SelectItemTitle
The text that will be shown in the select item title (only if there are items to select).
Declaration
public string SelectItemTitle
Field Value
Type | Description |
---|---|
string |
UseNameKey
Indicates whether the list has a key index.
Declaration
public bool UseNameKey
Field Value
Type | Description |
---|---|
bool |