Interface IModelSingleLayoutDisplayer
The main interface for popup windows that also implement the IModelLayoutHost but are not the IMainForm
Instead they are used purely as a host of a single IModelLayoutDisplayer in a popup window, and are not capable of displaying multiple displayers, unlike the main application itself
Inherited Members
Namespace: LemonEdge.Client.UI.API.Layouts
Assembly: LemonEdge.Client.UI.API.dll
Syntax
public interface IModelSingleLayoutDisplayer : IModelLayoutHost, IModelLayoutCommon, IBusyReporter, IDisposable, IWindow
Properties
HostOwner
the host model layout for access to core context items.
Declaration
IModelLayoutCommon HostOwner { get; set; }
Property Value
Type | Description |
---|---|
IModelLayoutCommon |
ItemsSelected
Returns the select items.
Declaration
(bool ItemSelected, IEnumerable<object> items) ItemsSelected { get; }
Property Value
Type | Description |
---|---|
(bool ItemSelected, IEnumerable<object> items) |
Methods
InitForItemSelection(Type, bool, ILayoutGenerator?, Action<IModelSingleLayoutDisplayer>?, IEntityUpdaterUI?, QueryableFilter?, IEnumerable<IBaseEntity>?)
Initializes this single layout displayer host to display the specified layout for selecting items
Declaration
Task InitForItemSelection(Type itemTypeToSelect, bool multiSelect, ILayoutGenerator? customLayout = null, Action<IModelSingleLayoutDisplayer>? onClosed = null, IEntityUpdaterUI? useContext = null, QueryableFilter? filter = null, IEnumerable<IBaseEntity>? items = null)
Parameters
Type | Name | Description |
---|---|---|
Type | itemTypeToSelect | The type of item to select |
bool | multiSelect | Indicates if multi selection is allowed or not |
ILayoutGenerator | customLayout | The custom layout to use, otherwise the default layout selector is used |
Action<IModelSingleLayoutDisplayer> | onClosed | |
IEntityUpdaterUI | useContext | |
QueryableFilter | filter | Any filters to apply to the layout |
IEnumerable<IBaseEntity> | items | The restricted set of items to allow selection from |
Returns
Type | Description |
---|---|
Task |
InitForItemSelectionAny<T>(DisplayableItemDescriptor, bool, ILayoutGenerator?, IEnumerable<T>?)
Initializes this single layout displayer host to display the specified layout for selecting items
Declaration
Task<IEnumerable<T>> InitForItemSelectionAny<T>(DisplayableItemDescriptor displayer, bool multiSelect, ILayoutGenerator? customLayout = null, IEnumerable<T>? items = null)
Parameters
Type | Name | Description |
---|---|---|
DisplayableItemDescriptor | displayer | The item to display against the layout |
bool | multiSelect | Indicates if multi selection is allowed or not |
ILayoutGenerator | customLayout | The custom layout to use, otherwise the default layout selector is used |
IEnumerable<T> | items | The restricted set of items to allow selection from |
Returns
Type | Description |
---|---|
Task<IEnumerable<T>> | The selected items if any |
Type Parameters
Name | Description |
---|---|
T | The type of item to be selecting |
InitForItemSelection<T>(DisplayableItemDescriptor, bool, ILayoutGenerator?, QueryableFilter?, IEnumerable<T>?)
Initializes this single layout displayer host to display the specified layout for selecting items
Declaration
Task<IEnumerable<IBaseEntity>> InitForItemSelection<T>(DisplayableItemDescriptor displayer, bool multiSelect, ILayoutGenerator? customLayout = null, QueryableFilter? filter = null, IEnumerable<T>? items = null) where T : IBaseEntity
Parameters
Type | Name | Description |
---|---|---|
DisplayableItemDescriptor | displayer | The item to display against the layout |
bool | multiSelect | Indicates if multi selection is allowed or not |
ILayoutGenerator | customLayout | The custom layout to use, otherwise the default layout selector is used |
QueryableFilter | filter | Any filters to apply to the layout |
IEnumerable<T> | items | The restricted set of items to allow selection from |
Returns
Type | Description |
---|---|
Task<IEnumerable<IBaseEntity>> | The selected items if any |
Type Parameters
Name | Description |
---|---|
T | The type of item to be selecting |