Class SortListScreen
- Namespace
- Dynamicweb.CoreUI.Data.SortList
- Assembly
- Dynamicweb.CoreUI.dll
public sealed class SortListScreen : EditScreenBase<SortListViewModel>
- Inheritance
-
SortListScreen
- Inherited Members
Methods
BuildEditScreen()
Defines the layout of this edit screen by adding editors to tabs and groups. Called once per request, after the model and configuration are ready.
protected override void BuildEditScreen()
Remarks
Override this method to build the screen UI. Use EditorFor(string) or EditorFor<T>(Expression<Func<TModel, T>>) to obtain editors, and pass them to AddComponent(string, string, UiComponentBase?) or AddComponents(string, string, IEnumerable<UiComponentBase?>?) to place them in tabs. You may also set UpdateTreeAfterSave, UpdateWorkspaceAfterSave, or ShowManageFields here.
GetOnCloseNavigateAction()
Returns the navigation action executed when the user closes (cancels) the screen. Called once when building the save/cancel button bar.
protected override NavigateScreenAction? GetOnCloseNavigateAction()
Returns
- NavigateScreenAction
A NavigateScreenAction to navigate to after cancel, or
nullto use the default back action.
GetOnSaveTreePath()
Returns the tree path that should be reloaded after a successful save when UpdateTreeAfterSave is true.
Called when constructing the post-save action chain.
protected override string? GetOnSaveTreePath()
Returns
- string
A tree path string, or
nullto reload the current tree node.
GetSaveCommand()
Returns the command responsible for persisting the model data when the user saves. Called once when building the form's submit action and save buttons.
protected override CommandBase<SortListViewModel> GetSaveCommand()
Returns
- CommandBase<SortListViewModel>
A CommandBase<T> that saves the model, or
nullto render the screen without any save button.
GetScreenName()
Returns the display name shown in the screen's title bar. Called once when building the screen layout.
protected override string GetScreenName()
Returns
- string
A human-readable name for the screen.