Wagtail client-side components
Preparing search index...
components/ChooserWidget/DocumentChooserWidget
DocumentChooserFactory
Class DocumentChooserFactory
Hierarchy (
View Summary
)
ChooserFactory
DocumentChooserFactory
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
DocumentChooserFactory
(
html
:
any
,
idPattern
:
any
,
opts
?:
{}
,
)
:
DocumentChooserFactory
Parameters
html
:
any
idPattern
:
any
opts
:
{}
= {}
Returns
DocumentChooserFactory
Properties
chooser
Modal
Class
chooserModalClass
:
any
= DocumentChooserModal
html
html
:
any
id
Pattern
idPattern
:
any
modal
modal
:
undefined
|
ChooserModal
opts
opts
:
{}
widget
Class
widgetClass
:
typeof
DocumentChooser
= DocumentChooser
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