Class SearchModalController<T>
public class SearchModalController<T> : ModalControllerBase<SearchModalModel<T>, SearchView, T>, IModalController<T> where T : IEntity<T>
Type Parameters
T
- Inheritance
-
SearchModalController<T>
- Implements
- Inherited Members
Constructors
SearchModalController(IServices, Func<IEntityContext, IEntityQuery<T>>, Action<SearchOptions>?)
public SearchModalController(IServices services, Func<IEntityContext, IEntityQuery<T>> queryFactory, Action<SearchOptions>? configure)
Parameters
servicesIServicesqueryFactoryFunc<IEntityContext, IEntityQuery<T>>configureAction<SearchOptions>
Methods
Cancel()
public void Cancel()
CreateSearchSubcontroller(Func<IEntityContext, IEntityQuery<T>>, Action<SearchOptions>?)
protected virtual SearchController<T> CreateSearchSubcontroller(Func<IEntityContext, IEntityQuery<T>> queryFactory, Action<SearchOptions>? configure)
Parameters
queryFactoryFunc<IEntityContext, IEntityQuery<T>>configureAction<SearchOptions>
Returns
CreateUninitialisedModel(ISurface)
protected override SearchModalModel<T> CreateUninitialisedModel(ISurface s)
Parameters
sISurface
Returns
InitialiseModel(SearchModalModel<T>)
protected override void InitialiseModel(SearchModalModel<T> vm)
Parameters
vmSearchModalModel<T>
OnCompleted()
This handler is invoked after the modal completes which could be due to it completing with a result or due to it being cancelled. This method should only perform cleanup of event handlers and similar.
protected override void OnCompleted()
Remarks
See OnConfirmAsync() and OnConfirmAsync() for an appropriate place to put business logic that should run immediately before confirming this modal.
OnModelCreated()
protected override void OnModelCreated()
Select()
public void Select()
SelectIfAny()
public void SelectIfAny()