Inheritance
DefaultCascadeMenuContext
Assembly: Serenity.UnityMenu.Infrastructure.dll
public sealed class DefaultCascadeMenuContext : ICascadeMenuContext
Constructors
Creates the default context.
Declaration
public DefaultCascadeMenuContext(IEventDispatcherService eventDispatcherService, ILogService logService, Action onResolved)
Parameters
| Type |
Name |
Description |
| IEventDispatcherService |
eventDispatcherService |
Dispatcher used to fire a leaf's optional signal.
|
| ILogService |
logService |
Logging service (selection trace + dynamic-source warnings).
|
| Action |
onResolved |
Callback the host view uses to close the cascade and return to its opener.
|
Methods
Declaration
public void Dispatch(object selection)
Parameters
| Type |
Name |
Description |
| object |
selection |
|
Declaration
public IReadOnlyList<CascadeDynamicEntry> GetEntries(string sourceId)
Parameters
| Type |
Name |
Description |
| string |
sourceId |
|
Returns
Declaration
public object GetSelection(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
Declaration
public bool IsConditionMet(string conditionId)
Parameters
| Type |
Name |
Description |
| string |
conditionId |
|
Returns
Declaration
public string Localize(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
Declaration
public void Resolve(object selection)
Parameters
| Type |
Name |
Description |
| object |
selection |
|
Declaration
public void SetSelection(string key, object value)
Parameters
Implements