Wagtail client-side components
Preparing search index...
components/ChooserWidget/ImageChooserWidget
ImageChooserFactory
Class ImageChooserFactory
Hierarchy (
View Summary
)
ChooserFactory
ImageChooserFactory
Index
Constructors
constructor
Properties
chooser
Modal
Class
html
id
Pattern
modal
opts
widget
Class
Methods
get
By
Id
get
Modal
Options
open
Modal
render
Constructors
constructor
new
ImageChooserFactory
(
html
:
any
,
idPattern
:
any
,
opts
?:
{}
,
)
:
ImageChooserFactory
Parameters
html
:
any
idPattern
:
any
opts
:
{}
= {}
Returns
ImageChooserFactory
Properties
chooser
Modal
Class
chooserModalClass
:
any
= ImageChooserModal
html
html
:
any
id
Pattern
idPattern
:
any
modal
modal
:
undefined
|
ChooserModal
opts
opts
:
{}
widget
Class
widgetClass
:
typeof
ImageChooser
= ImageChooser
Methods
get
By
Id
getById
(
id
:
any
)
:
any
retrieve the widget object corresponding to the given HTML ID
Parameters
id
:
any
Returns
any
get
Modal
Options
getModalOptions
()
:
null
Returns
null
open
Modal
openModal
(
callback
:
any
,
customOptions
:
any
)
:
void
Parameters
callback
:
any
customOptions
:
any
Returns
void
render
render
(
placeholder
:
any
,
name
:
any
,
id
:
any
,
initialState
:
any
)
:
Chooser
Parameters
placeholder
:
any
name
:
any
id
:
any
initialState
:
any
Returns
Chooser
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
chooser
Modal
Class
html
id
Pattern
modal
opts
widget
Class
Methods
get
By
Id
get
Modal
Options
open
Modal
render
Wagtail client-side components
Loading...
retrieve the widget object corresponding to the given HTML ID