@serenity-is/corelib / MaskedEditor
EditorWidget
<P
>
• P extends MaskedEditorOptions
= MaskedEditorOptions
new MaskedEditor<
P
>(props
):MaskedEditor
<P
>
EditorProps
<P
>
MaskedEditor
<P
>
src/ui/editors/maskededitor.tsx:13
readonly
domNode:HTMLInputElement
src/ui/editors/maskededitor.tsx:11
readonly
idPrefix:string
protected
readonly
options:WidgetProps
<EditorProps
<P
>>
readonly
uniqueName:string
readonly
static
isComponent:true
=true
static
typeInfo:ClassTypeInfo
<"Serenity.EditorWidget"
>
src/ui/editors/editorwidget.ts:17
get element():
Fluent
<HTMLElement
>
Returns a Fluent(this.domNode) object
Fluent
<HTMLElement
>
get props():
WidgetProps
<P
>
WidgetProps
<P
>
get readOnly():
boolean
boolean
set readOnly(
value
):void
boolean
void
src/ui/editors/editorwidget.ts:23
get value():
string
string
set value(
value
):void
string
void
src/ui/editors/maskededitor.tsx:27
protected
addCssClass():void
void
addValidationRule(
rule
,uniqueName
?):void
(input
) => string
string
void
EditorWidget
.addValidationRule
addValidationRule(
uniqueName
,rule
):void
string
(input
) => string
void
EditorWidget
.addValidationRule
protected
afterRender(callback
):void
() => void
void
protected
byId<TElement
>(id
):Fluent
<TElement
>
• TElement extends HTMLElement
= HTMLElement
string
Fluent
<TElement
>
change(
handler
):void
(e
) => void
void
changeSelect2(
handler
):void
(e
) => void
void
protected
deferRender():boolean
boolean
destroy():
void
void
protected
findById<TElement
>(id
):TElement
• TElement extends HTMLElement
= HTMLElement
string
TElement
protected
get_value():string
string
src/ui/editors/maskededitor.tsx:32
protected
getCssClass():string
string
protected
getCustomAttribute<TAttr
>(attrType
,inherit
):TAttr
• TAttr
(...args
) => TAttr
boolean
= true
TAttr
EditorWidget
.getCustomAttribute
getGridField():
Fluent
<HTMLElement
>
Fluent
<HTMLElement
>
init():
this
this
internalRenderContents():
void
void
EditorWidget
.internalRenderContents
protected
legacyTemplateRender():boolean
boolean
EditorWidget
.legacyTemplateRender
render():
any
Returns the main element for this widget or the document fragment. As widgets may get their elements from props unlike regular JSX widgets, this method should not be overridden. Override renderContents() instead.
any
protected
renderContents():any
any
protected
set_value(value
):void
string
void
src/ui/editors/maskededitor.tsx:40
protected
syncOrAsyncThen<T
>(syncMethod
,asyncMethod
,then
):void
• T
() => T
() => PromiseLike
<T
>
(v
) => void
void
protected
useIdPrefix():IdPrefixType
static
create<TWidget
,P
>(params
):TWidget
• TWidget extends Widget
<P
>
• P
CreateWidgetParams
<TWidget
, P
>
TWidget
static
createDefaultElement():HTMLInputElement
HTMLInputElement
EditorWidget
.createDefaultElement
src/ui/editors/maskededitor.tsx:10
static
getWidgetName(type
):string
Function
string