PromptPlus API:IPromptConfig
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
Description(String)
Set description for the control
IPromptConfig Description(string value)
Parameters
value
String
Text description. Accept markup color
Returns
Description(StringStyle)
Set description for the control
IPromptConfig Description(StringStyle value)
Parameters
value
StringStyle
Value description with style
Returns
DisableToggleTooltip(Boolean)
Overwrite default DisableToggleTooltip of control
IPromptConfig DisableToggleTooltip(bool value)
Parameters
value
Boolean
value
Returns
EnabledAbortKey(Boolean)
Overwrite default Enabled/Disabled AbortKey press of control
IPromptConfig EnabledAbortKey(bool value)
Parameters
value
Boolean
value
Returns
HideAfterFinish(Boolean)
Overwrite default Clear render area of control after finished
IPromptConfig HideAfterFinish(bool value)
Parameters
value
Boolean
value
Returns
HideOnAbort(Boolean)
Overwrite default Clear render area of control after AbortKey press
IPromptConfig HideOnAbort(bool value)
Parameters
value
Boolean
value
Returns
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
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
Prompt(String)
Set prompt for the control
IPromptConfig Prompt(string value)
Parameters
value
String
Text prompt. Accept markup color
Returns
Prompt(StringStyle)
Set prompt for the control
IPromptConfig Prompt(StringStyle value)
Parameters
value
StringStyle
Value prompt with style
Returns
SetContext(Object)
Set generic context for then control to pass in stage ExtraAction parameter
IPromptConfig SetContext(object value)
Parameters
value
Object
value
Returns
ShowOnlyExistingPagination(Boolean)
Overwrite default Show pagination only if exists
IPromptConfig ShowOnlyExistingPagination(bool value)
Parameters
value
Boolean
value
Returns
ShowTooltip(Boolean)
Overwrite default Show/Hide Tooltip of control
IPromptConfig ShowTooltip(bool value)
Parameters
value
Boolean
value
Returns
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
Tooltips(StringStyle)
Set Tooltips for the control. This value overwrite default tooltips control.
IPromptConfig Tooltips(StringStyle value)
Parameters
value
StringStyle
Value tooltip with style