@serenity-is/corelib / IntegerEditor
EditorWidget
<P
>
• P extends IntegerEditorOptions
= IntegerEditorOptions
new IntegerEditor<
P
>(props
):IntegerEditor
<P
>
EditorProps
<P
>
src/ui/editors/integereditor.tsx:21
readonly
domNode:HTMLInputElement
src/ui/editors/integereditor.tsx:19
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():
number
number
set value(
v
):void
number
void
src/ui/editors/integereditor.tsx:64
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
src/ui/editors/integereditor.tsx:28
protected
findById<TElement
>(id
):TElement
• TElement extends HTMLElement
= HTMLElement
string
TElement
get_isValid():
boolean
boolean
src/ui/editors/integereditor.tsx:81
get_value():
number
number
src/ui/editors/integereditor.tsx:47
protected
getAutoNumericOptions():any
any
src/ui/editors/integereditor.tsx:37
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
protected
initAutoNumeric():void
void
src/ui/editors/integereditor.tsx:33
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
set_value(
value
):void
number
void
src/ui/editors/integereditor.tsx:68
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/integereditor.tsx:18
static
getWidgetName(type
):string
Function
string