Table of Contents

Class ScreenPresetSelectScreen

Namespace
Dynamicweb.CoreUI.Data.ScreenConfiguration
Assembly
Dynamicweb.CoreUI.dll
public sealed class ScreenPresetSelectScreen : PromptScreenBase<ScreenPresetSelectDataModel>
Inheritance
ScreenPresetSelectScreen
Inherited Members

Methods

BuildPromptScreen()

protected override void BuildPromptScreen()

ConfigureOkAction(RunCommandAction)

Applies post-execution behaviour to the primary command action. The default implementation adds ClosePopupAndReload with ReloadTypeOnSuccess unless a custom OnSuccess handler is already present.

protected override RunCommandAction ConfigureOkAction(RunCommandAction action)

Parameters

action RunCommandAction

The action to configure.

Returns

RunCommandAction

The configured action.

GetEditor(string)

Returns a custom editor for a named property of ScreenPresetSelectDataModel. Called by EditorFor<T>(Expression<Func<TModel, T>>) before falling back to the default editor.

protected override EditorBase? GetEditor(string propertyName)

Parameters

propertyName string

The 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<ScreenPresetSelectDataModel>? GetOkCommand()

Returns

CommandBase<ScreenPresetSelectDataModel>

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.

To top