@serenity-is/corelib / ImageUploadEditor
Class: ImageUploadEditor<P>
Extends
Type Parameters
• P extends ImageUploadEditorOptions = ImageUploadEditorOptions
Constructors
new ImageUploadEditor()
new ImageUploadEditor<
P>(props):ImageUploadEditor<P>
Parameters
props
EditorProps<P>
Returns
Overrides
Defined in
src/ui/editors/uploadeditors.tsx:261
Properties
domNode
readonlydomNode:HTMLElement
Inherited from
Defined in
entity
protectedentity:UploadedFile
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:251
fileSymbols
protectedfileSymbols:HTMLElement
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:254
hiddenInput
protectedhiddenInput:HTMLInputElement
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:256
idPrefix
readonlyidPrefix:string
Inherited from
Defined in
options
protectedreadonlyoptions:WidgetProps<EditorProps<P>>
Inherited from
Defined in
progress
protectedprogress:HTMLElement
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:253
toolbar
protectedtoolbar:Toolbar<ToolbarOptions>
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:252
uniqueName
readonlyuniqueName:string
Inherited from
Defined in
uploadInput
protecteduploadInput:Fluent<HTMLElement>
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:255
isComponent
readonlystaticisComponent:true=true
Inherited from
Defined in
typeInfo
statictypeInfo:ClassTypeInfo<"Serenity.EditorWidget">
Inherited from
Defined in
src/ui/editors/editorwidget.ts:17
Accessors
element
Get Signature
get element():
Fluent<HTMLElement>
Returns a Fluent(this.domNode) object
Returns
Fluent<HTMLElement>
Inherited from
Defined in
props
Get Signature
get props():
WidgetProps<P>
Returns
WidgetProps<P>
Inherited from
Defined in
readOnly
Get Signature
get readOnly():
boolean
Returns
boolean
Set Signature
set readOnly(
value):void
Parameters
value
boolean
Returns
void
Inherited from
Defined in
src/ui/editors/editorwidget.ts:23
value
Get Signature
get value():
UploadedFile
Returns
Set Signature
set value(
v):void
Parameters
v
Returns
void
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:181
Methods
addCssClass()
protectedaddCssClass():void
Returns
void
Inherited from
Defined in
addFileButtonText()
protectedaddFileButtonText():string
Returns
string
Inherited from
FileUploadEditor.addFileButtonText
Defined in
src/ui/editors/uploadeditors.tsx:85
addValidationRule()
Call Signature
addValidationRule(
rule,uniqueName?):void
Parameters
rule
(input) => string
uniqueName?
string
Returns
void
Inherited from
FileUploadEditor.addValidationRule
Defined in
Call Signature
addValidationRule(
uniqueName,rule):void
Parameters
uniqueName
string
rule
(input) => string
Returns
void
Inherited from
FileUploadEditor.addValidationRule
Defined in
afterRender()
protectedafterRender(callback):void
Parameters
callback
() => void
Returns
void
Inherited from
Defined in
byId()
protectedbyId<TElement>(id):Fluent<TElement>
Type Parameters
• TElement extends HTMLElement = HTMLElement
Parameters
id
string
Returns
Fluent<TElement>
Inherited from
Defined in
change()
change(
handler):void
Parameters
handler
(e) => void
Returns
void
Inherited from
Defined in
changeSelect2()
changeSelect2(
handler):void
Parameters
handler
(e) => void
Returns
void
Inherited from
FileUploadEditor.changeSelect2
Defined in
deferRender()
protecteddeferRender():boolean
Returns
boolean
Inherited from
Defined in
destroy()
destroy():
void
Returns
void
Inherited from
Defined in
findById()
protectedfindById<TElement>(id):TElement
Type Parameters
• TElement extends HTMLElement = HTMLElement
Parameters
id
string
Returns
TElement
Inherited from
Defined in
get_readOnly()
get_readOnly():
boolean
Returns
boolean
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:139
get_required()
get_required():
boolean
Returns
boolean
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:165
get_value()
get_value():
UploadedFile
Returns
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:173
getCssClass()
protectedgetCssClass():string
Returns
string
Inherited from
Defined in
getCustomAttribute()
protectedgetCustomAttribute<TAttr>(attrType,inherit):TAttr
Type Parameters
• TAttr
Parameters
attrType
(...args) => TAttr
inherit
boolean = true
Returns
TAttr
Inherited from
FileUploadEditor.getCustomAttribute
Defined in
getEditValue()
getEditValue(
property,target):void
Parameters
property
target
any
Returns
void
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:224
getGridField()
getGridField():
Fluent<HTMLElement>
Returns
Fluent<HTMLElement>
Inherited from
Defined in
getToolButtons()
protectedgetToolButtons():ToolButton[]
Returns
Inherited from
FileUploadEditor.getToolButtons
Defined in
src/ui/editors/uploadeditors.tsx:89
getUploadInputOptions()
protectedgetUploadInputOptions():UploadInputOptions
Returns
Inherited from
FileUploadEditor.getUploadInputOptions
Defined in
src/ui/editors/uploadeditors.tsx:58
init()
init():
this
Returns
this
Inherited from
Defined in
internalRenderContents()
internalRenderContents():
void
Returns
void
Inherited from
FileUploadEditor.internalRenderContents
Defined in
legacyTemplateRender()
protectedlegacyTemplateRender():boolean
Returns
boolean
Inherited from
FileUploadEditor.legacyTemplateRender
Defined in
populate()
protectedpopulate():void
Returns
void
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:114
render()
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.
Returns
any
Inherited from
Defined in
renderContents()
protectedrenderContents():any
Returns
any
Inherited from
FileUploadEditor.renderContents
Defined in
set_readOnly()
set_readOnly(
value):void
Parameters
value
boolean
Returns
void
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:143
set_required()
set_required(
value):void
Parameters
value
boolean
Returns
void
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:169
set_value()
set_value(
value):void
Parameters
value
Returns
void
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:185
setEditValue()
setEditValue(
source,property):void
Parameters
source
any
property
Returns
void
Inherited from
Defined in
src/ui/editors/uploadeditors.tsx:228
syncOrAsyncThen()
protectedsyncOrAsyncThen<T>(syncMethod,asyncMethod,then):void
Type Parameters
• T
Parameters
syncMethod
() => T
asyncMethod
() => PromiseLike<T>
then
(v) => void
Returns
void
Inherited from
FileUploadEditor.syncOrAsyncThen
Defined in
updateInterface()
protectedupdateInterface():void
Returns
void
Inherited from
FileUploadEditor.updateInterface
Defined in
src/ui/editors/uploadeditors.tsx:131
useIdPrefix()
protecteduseIdPrefix():IdPrefixType
Returns
Inherited from
Defined in
create()
staticcreate<TWidget,P>(params):TWidget
Type Parameters
• TWidget extends Widget<P>
• P
Parameters
params
CreateWidgetParams<TWidget, P>
Returns
TWidget
Inherited from
Defined in
createDefaultElement()
staticcreateDefaultElement():HTMLElement
Returns
HTMLElement
Inherited from
FileUploadEditor.createDefaultElement
Defined in
getWidgetName()
staticgetWidgetName(type):string
Parameters
type
Function
Returns
string
Inherited from
FileUploadEditor.getWidgetName