Class ScreenPresetRenameScreen
- Namespace
- Dynamicweb.CoreUI.Data.ScreenConfiguration
- Assembly
- Dynamicweb.CoreUI.dll
public sealed class ScreenPresetRenameScreen : PromptScreenBase<ScreenPresetDataModel>
- Inheritance
-
ScreenPresetRenameScreen
- Inherited Members
Methods
BuildPromptScreen()
Constructs the form content by calling AddComponent(UiComponentBase?, string), AddComponents(IEnumerable<UiComponentBase?>, string),
the various EditorFor* helpers, and AddDynamicFields(Expression<Func<TModel, FieldGroupCollection>>) as needed.
Called once during GetDefinition().
protected override void BuildPromptScreen()
GetEditorForCommand(string)
Returns a custom editor for a named property of a command type.
Called by the EditorForCommand overloads before falling back to the default editor.
protected override EditorBase? GetEditorForCommand(string propertyName)
Parameters
propertyNamestringThe property name for which an editor is requested.
Returns
- EditorBase
A custom editor, or null to use the default editor for the property type.
GetOkActionName()
Returns the label shown on the primary action button. Defaults to "Create".
protected override string GetOkActionName()
Returns
- string
A non-empty string for the button label.
GetOkCommand()
Returns the command to execute when the user confirms the prompt. Override this method as the preferred way to wire up the submit action.
protected override CommandBase<ScreenPresetDataModel>? GetOkCommand()
Returns
- CommandBase<ScreenPresetDataModel>
The command to run on confirmation, or null if no command is needed.
GetScreenName()
Returns the display name shown in the screen header.
protected override string GetScreenName()
Returns
- string
A non-empty string identifying this screen to the user.