@serenity-is/corelib / ImageUploadEditor
• P extends ImageUploadEditorOptions
= ImageUploadEditorOptions
new ImageUploadEditor<
P
>(props
):ImageUploadEditor
<P
>
EditorProps
<P
>
src/ui/editors/uploadeditors.tsx:261
readonly
domNode:HTMLElement
protected
entity:UploadedFile
src/ui/editors/uploadeditors.tsx:251
protected
fileSymbols:HTMLElement
src/ui/editors/uploadeditors.tsx:254
hiddenInput
protected
hiddenInput:HTMLInputElement
src/ui/editors/uploadeditors.tsx:256
readonly
idPrefix:string
protected
readonly
options:WidgetProps
<EditorProps
<P
>>
protected
progress:HTMLElement
src/ui/editors/uploadeditors.tsx:253
protected
toolbar:Toolbar
<ToolbarOptions
>
src/ui/editors/uploadeditors.tsx:252
readonly
uniqueName:string
protected
uploadInput:Fluent
<HTMLElement
>
src/ui/editors/uploadeditors.tsx:255
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():
UploadedFile
set value(
v
):void
void
src/ui/editors/uploadeditors.tsx:181
protected
addCssClass():void
void
protected
addFileButtonText():string
string
FileUploadEditor
.addFileButtonText
src/ui/editors/uploadeditors.tsx:85
addValidationRule(
rule
,uniqueName
?):void
(input
) => string
string
void
FileUploadEditor
.addValidationRule
addValidationRule(
uniqueName
,rule
):void
string
(input
) => string
void
FileUploadEditor
.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
FileUploadEditor
.changeSelect2
protected
deferRender():boolean
boolean
destroy():
void
void
protected
findById<TElement
>(id
):TElement
• TElement extends HTMLElement
= HTMLElement
string
TElement
get_readOnly():
boolean
boolean
src/ui/editors/uploadeditors.tsx:139
get_required():
boolean
boolean
src/ui/editors/uploadeditors.tsx:165
get_value():
UploadedFile
src/ui/editors/uploadeditors.tsx:173
protected
getCssClass():string
string
protected
getCustomAttribute<TAttr
>(attrType
,inherit
):TAttr
• TAttr
(...args
) => TAttr
boolean
= true
TAttr
FileUploadEditor
.getCustomAttribute
getEditValue(
property
,target
):void
any
void
src/ui/editors/uploadeditors.tsx:224
getGridField():
Fluent
<HTMLElement
>
Fluent
<HTMLElement
>
protected
getToolButtons():ToolButton
[]
FileUploadEditor
.getToolButtons
src/ui/editors/uploadeditors.tsx:89
protected
getUploadInputOptions():UploadInputOptions
FileUploadEditor
.getUploadInputOptions
src/ui/editors/uploadeditors.tsx:58
init():
this
this
internalRenderContents():
void
void
FileUploadEditor
.internalRenderContents
protected
legacyTemplateRender():boolean
boolean
FileUploadEditor
.legacyTemplateRender
protected
populate():void
void
src/ui/editors/uploadeditors.tsx:114
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
FileUploadEditor
.renderContents
set_readOnly(
value
):void
boolean
void
src/ui/editors/uploadeditors.tsx:143
set_required(
value
):void
boolean
void
src/ui/editors/uploadeditors.tsx:169
set_value(
value
):void
void
src/ui/editors/uploadeditors.tsx:185
setEditValue(
source
,property
):void
any
void
src/ui/editors/uploadeditors.tsx:228
protected
syncOrAsyncThen<T
>(syncMethod
,asyncMethod
,then
):void
• T
() => T
() => PromiseLike
<T
>
(v
) => void
void
FileUploadEditor
.syncOrAsyncThen
protected
updateInterface():void
void
FileUploadEditor
.updateInterface
src/ui/editors/uploadeditors.tsx:131
protected
useIdPrefix():IdPrefixType
static
create<TWidget
,P
>(params
):TWidget
• TWidget extends Widget
<P
>
• P
CreateWidgetParams
<TWidget
, P
>
TWidget
static
createDefaultElement():HTMLElement
HTMLElement
FileUploadEditor
.createDefaultElement
static
getWidgetName(type
):string
Function
string