Class RenderPropertyAsList
Render 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, 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, bool showOrder = 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 use a key. |
bool | showOrder | If the list must show the element index. |
string | legend | The text to be presented in the legend area. |
string | selectItemTitle | The text showing in the item selector. |
string | itemsToSelect | Method name of the items to select. |
string | canDeleteItem | Method name of every item, telling wheter it can be deleted. |
string | onAddedItemAction | Optional method called (after) when a new item is added. |
string | onRemovedItemAction | Optional method called (after) when a new item is removed. |
Fields
AddItemAction
Optional method called (after) when a new item is added.
Declaration
public string AddItemAction
Field Value
Type | Description |
---|---|
string |
CanDeleteItem
The property name of the item telling whether the item can be deleted or not.
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 insert.
Declaration
public string ItemsToSelect
Field Value
Type | Description |
---|---|
string |
Legend
The legend of the widget.
Declaration
public string Legend
Field Value
Type | Description |
---|---|
string |
RemoveItemAction
Optional method called (after) when a new item is removed.
Declaration
public string RemoveItemAction
Field Value
Type | Description |
---|---|
string |
SelectItemTitle
The text that will show in the select item title (Only in case there are items to select).
Declaration
public string SelectItemTitle
Field Value
Type | Description |
---|---|
string |
ShowOrder
If the order of the elements must be visible.
Declaration
public bool ShowOrder
Field Value
Type | Description |
---|---|
bool |
UseNameKey
Value indicating whether the list has a key index.
Declaration
public bool UseNameKey
Field Value
Type | Description |
---|---|
bool |