Interface ICopyGridItemImplementor<T>
An interface for a view enabling the ability to add a new item to the collection of items it displays
Used by grids to allow the copying of the current selected item
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface ICopyGridItemImplementor<T>
Type Parameters
Name | Description |
---|---|
T | The type of entity to be created and added to the existing collection in the view |
Properties
AutoOpenNewItemInTab
Indicates that any new item should be automatically opened in a new layout.
It wil always be added as a new item to the view collection (typically a new row in a grid view), this just also provides the additional ability for it to open as a new layout as well
Declaration
bool AutoOpenNewItemInTab { get; }
Property Value
Type | Description |
---|---|
bool |
CanCreateNew
Returns true if the user has permission to create new items of type T
in this view
Declaration
bool CanCreateNew { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
AddItem(T)
Adds the specified new item to the current collection being displayed on the view
If this is a grid view, then it simply appears as a new row in the grid
Declaration
Task AddItem(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The new item to be added to the visible collection in the view |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |