@serenity-is/corelib / MultipleFileUploadEditor
Class: MultipleFileUploadEditor<P>
Extends
EditorWidget<P>
Extended by
Type Parameters
• P extends MultipleFileUploadEditorOptions = MultipleFileUploadEditorOptions
Implements
Constructors
new MultipleFileUploadEditor()
new MultipleFileUploadEditor<
P>(props):MultipleFileUploadEditor<P>
Parameters
props
EditorProps<P>
Returns
Overrides
Defined in
src/ui/editors/uploadeditors.tsx:286
Properties
domNode
readonlydomNode:HTMLElement
Inherited from
Defined in
hiddenInput
protectedhiddenInput:HTMLInputElement
Defined in
src/ui/editors/uploadeditors.tsx:284
idPrefix
readonlyidPrefix:string
Inherited from
Defined in
options
protectedreadonlyoptions:WidgetProps<EditorProps<P>>
Inherited from
Defined in
progress
protectedprogress:HTMLElement
Defined in
src/ui/editors/uploadeditors.tsx:283
uniqueName
readonlyuniqueName:string
Inherited from
Defined in
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
jsonEncodeValue
Get Signature
get jsonEncodeValue():
boolean
Returns
boolean
Set Signature
set jsonEncodeValue(
value):void
Parameters
value
boolean
Returns
void
Defined in
src/ui/editors/uploadeditors.tsx:459
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
Defined in
src/ui/editors/uploadeditors.tsx:415
Methods
addCssClass()
protectedaddCssClass():void
Returns
void
Inherited from
Defined in
addFileButtonText()
protectedaddFileButtonText():string
Returns
string
Defined in
src/ui/editors/uploadeditors.tsx:336
addValidationRule()
Call Signature
addValidationRule(
rule,uniqueName?):void
Parameters
rule
(input) => string
uniqueName?
string
Returns
void
Inherited from
EditorWidget.addValidationRule
Defined in
Call Signature
addValidationRule(
uniqueName,rule):void
Parameters
uniqueName
string
rule
(input) => string
Returns
void
Inherited from
EditorWidget.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
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
Implementation of
Defined in
src/ui/editors/uploadeditors.tsx:375
get_required()
get_required():
boolean
Returns
boolean
Implementation of
IValidateRequired.get_required
Defined in
src/ui/editors/uploadeditors.tsx:401
get_value()
get_value():
UploadedFile[]
Returns
Defined in
src/ui/editors/uploadeditors.tsx:409
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
EditorWidget.getCustomAttribute
Defined in
getEditValue()
getEditValue(
property,target):void
Parameters
property
target
any
Returns
void
Implementation of
Defined in
src/ui/editors/uploadeditors.tsx:431
getGridField()
getGridField():
Fluent<HTMLElement>
Returns
Fluent<HTMLElement>
Inherited from
Defined in
getToolButtons()
protectedgetToolButtons():ToolButton[]
Returns
Defined in
src/ui/editors/uploadeditors.tsx:340
getUploadInputOptions()
protectedgetUploadInputOptions():UploadInputOptions
Returns
Defined in
src/ui/editors/uploadeditors.tsx:310
init()
init():
this
Returns
this
Inherited from
Defined in
internalRenderContents()
internalRenderContents():
void
Returns
void
Inherited from
EditorWidget.internalRenderContents
Defined in
legacyTemplateRender()
protectedlegacyTemplateRender():boolean
Returns
boolean
Inherited from
EditorWidget.legacyTemplateRender
Defined in
populate()
protectedpopulate():void
Returns
void
Defined in
src/ui/editors/uploadeditors.tsx:350
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
Defined in
set_readOnly()
set_readOnly(
value):void
Parameters
value
boolean
Returns
void
Implementation of
Defined in
src/ui/editors/uploadeditors.tsx:379
set_required()
set_required(
value):void
Parameters
value
boolean
Returns
void
Implementation of
IValidateRequired.set_required
Defined in
src/ui/editors/uploadeditors.tsx:405
set_value()
set_value(
value):void
Parameters
value
Returns
void
Defined in
src/ui/editors/uploadeditors.tsx:419
setEditValue()
setEditValue(
source,property):void
Parameters
source
any
property
Returns
void
Implementation of
Defined in
src/ui/editors/uploadeditors.tsx:440
syncOrAsyncThen()
protectedsyncOrAsyncThen<T>(syncMethod,asyncMethod,then):void
Type Parameters
• T
Parameters
syncMethod
() => T
asyncMethod
() => PromiseLike<T>
then
(v) => void
Returns
void
Inherited from
Defined in
updateInterface()
protectedupdateInterface():void
Returns
void
Defined in
src/ui/editors/uploadeditors.tsx:369
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
EditorWidget.createDefaultElement
Defined in
getWidgetName()
staticgetWidgetName(type):string
Parameters
type
Function
Returns
string