Skip to the content.

PromptPlus API:IPromptConfig

Build Publish License NuGet Downloads

Back to List Api

IPromptConfig

Namespace: PPlus.Controls

Interface for config controls to overwrite default values

public interface IPromptConfig

Methods

AddExtraAction(StageControl, Action<Object, Object>)

Add generic action for the control when change StageControl of control

IPromptConfig AddExtraAction(StageControl stage, Action<Object, Object> useraction)

Parameters

stage StageControl
Stage control

useraction Action<Object, Object>
Action to execute. First param is generic conext(IPromptConfig.SetContext(Object)). Second param is curent input value of control.

Returns

IPromptConfig

Description(String)

Set description for the control

IPromptConfig Description(string value)

Parameters

value String
Text description. Accept markup color

Returns

IPromptConfig

Description(StringStyle)

Set description for the control

IPromptConfig Description(StringStyle value)

Parameters

value StringStyle
Value description with style

Returns

IPromptConfig

DisableToggleTooltip(Boolean)

Overwrite default DisableToggleTooltip of control

IPromptConfig DisableToggleTooltip(bool value)

Parameters

value Boolean
value

Returns

IPromptConfig

EnabledAbortKey(Boolean)

Overwrite default Enabled/Disabled AbortKey press of control

IPromptConfig EnabledAbortKey(bool value)

Parameters

value Boolean
value

Returns

IPromptConfig

HideAfterFinish(Boolean)

Overwrite default Clear render area of control after finished

IPromptConfig HideAfterFinish(bool value)

Parameters

value Boolean
value

Returns

IPromptConfig

HideOnAbort(Boolean)

Overwrite default Clear render area of control after AbortKey press

IPromptConfig HideOnAbort(bool value)

Parameters

value Boolean
value

Returns

IPromptConfig

MinimalRender(Boolean)

Overwrite default Hide Answer
When true, the prompt and control description are not rendered, showing only the minimum necessary without using resources (except the default tooltips when used)

IPromptConfig MinimalRender(bool value)

Parameters

value Boolean
value

Returns

IPromptConfig

PaginationTemplate(Func<Int32, Int32, Int32, String>)

Overwrite PaginationTemplate

IPromptConfig PaginationTemplate(Func<Int32, Int32, Int32, String> value)

Parameters

value Func<Int32, Int32, Int32, String>
The function
string to show = Func(Total items,Current Page,Total pages)

Returns

IPromptConfig

Prompt(String)

Set prompt for the control

IPromptConfig Prompt(string value)

Parameters

value String
Text prompt. Accept markup color

Returns

IPromptConfig

Prompt(StringStyle)

Set prompt for the control

IPromptConfig Prompt(StringStyle value)

Parameters

value StringStyle
Value prompt with style

Returns

IPromptConfig

SetContext(Object)

Set generic context for then control to pass in stage ExtraAction parameter

IPromptConfig SetContext(object value)

Parameters

value Object
value

Returns

IPromptConfig

ShowOnlyExistingPagination(Boolean)

Overwrite default Show pagination only if exists

IPromptConfig ShowOnlyExistingPagination(bool value)

Parameters

value Boolean
value

Returns

IPromptConfig

ShowTooltip(Boolean)

Overwrite default Show/Hide Tooltip of control

IPromptConfig ShowTooltip(bool value)

Parameters

value Boolean
value

Returns

IPromptConfig

Tooltips(String)

Set prompt for the control

IPromptConfig Tooltips(string value)

Parameters

value String
Text Tooltips. Accept markup color. This text overwrite default tooltips control.

Returns

IPromptConfig

Tooltips(StringStyle)

Set Tooltips for the control. This value overwrite default tooltips control.

IPromptConfig Tooltips(StringStyle value)

Parameters

value StringStyle
Value tooltip with style

Returns

IPromptConfig


Back to List Api