phoenix_live_view
Preparing search index...
<internal>
default
Class default
Internal
Index
Constructors
constructor
Properties
el
id
is
Dead
live
Socket
portal
Element
Ids
root
Methods
ack
Join
add
Hook
after
Elements
Removed
all
apply
Diff
apply
Join
Patch
apply
Pending
Updates
attach
True
Doc
El
bind
Channel
binding
cancel
Submit
closest
Component
ID
component
ID
component
Patch
connect
Params
delayed
Disconnected
destroy
destroy
All
Children
destroy
Descendent
destroy
Hook
destroy
Portal
Elements
disable
Form
dispatch
Uploads
display
Error
drop
Pending
Refs
drop
Portal
Element
Id
each
Child
exec
All
exec
New
Mounted
expand
URL
extract
Meta
get
Child
By
Id
get
Descendent
By
El
get
Forms
For
Recovery
get
Hook
get
Scheduled
Submit
get
Session
get
Static
handle
Failed
Entry
Preflight
hide
Loader
is
Acked
is
Connected
is
Destroyed
is
Join
Pending
is
Main
join
join
Child
join
Dead
join
New
Children
log
log
Error
maybe
Add
New
Hook
maybe
Mounted
maybe
Push
Components
Destroyed
maybe
Recover
Forms
on
All
Child
Joins
Complete
on
Channel
on
Close
on
Error
on
Join
on
Join
Complete
on
Join
Error
on
Live
Patch
on
Live
Redirect
on
Redirect
owns
Element
perform
Patch
push
Event
push
File
Progress
push
Form
Recovery
push
Form
Submit
push
Hook
Event
push
Input
push
Link
Patch
push
Portal
Element
Id
push
With
Reply
put
Ref
ref
Src
render
Container
schedule
Submit
serialize
Form
set
Container
Classes
set
Href
set
Redirect
show
Loader
submit
Form
target
Component
ID
target
Ctx
Element
transition
trigger
Awaiting
Submit
trigger
Before
Update
Hook
trigger
Reconnected
undo
El
Ref
undo
Refs
update
upload
Files
within
Targets
wrap
Push
closest
View
Constructors
constructor
new
default
(
el
:
Element
,
liveSocket
:
LiveSocket
,
parentView
:
default
,
flash
?:
string
,
liveReferer
?:
string
,
)
:
default
Parameters
el
:
Element
liveSocket
:
LiveSocket
parentView
:
default
flash
:
string
= null
liveReferer
:
string
= null
Returns
default
Properties
el
el
:
Element
id
id
:
string
is
Dead
isDead
:
boolean
live
Socket
liveSocket
:
LiveSocket
portal
Element
Ids
portalElementIds
:
Set
<
string
>
root
root
:
default
Methods
ack
Join
ackJoin
(
_child
:
any
)
:
void
Parameters
_child
:
any
Returns
void
add
Hook
addHook
(
el
:
any
)
:
any
Parameters
el
:
any
Returns
any
after
Elements
Removed
afterElementsRemoved
(
elements
:
any
,
pruneCids
:
any
)
:
void
Parameters
elements
:
any
pruneCids
:
any
Returns
void
all
all
(
parent
:
any
,
selector
:
any
,
callback
:
any
)
:
void
Parameters
parent
:
any
selector
:
any
callback
:
any
Returns
void
apply
Diff
applyDiff
(
type
:
"update"
|
"mount"
,
rawDiff
:
any
,
callback
:
any
)
:
void
Parameters
type
:
"update"
|
"mount"
rawDiff
:
any
callback
:
any
Returns
void
apply
Join
Patch
applyJoinPatch
(
live_patch
:
any
,
html
:
any
,
streams
:
any
,
events
:
any
)
:
void
Parameters
live_patch
:
any
html
:
any
streams
:
any
events
:
any
Returns
void
apply
Pending
Updates
applyPendingUpdates
()
:
void
Returns
void
attach
True
Doc
El
attachTrueDocEl
()
:
void
Returns
void
bind
Channel
bindChannel
()
:
void
Returns
void
binding
binding
(
kind
:
any
)
:
string
Parameters
kind
:
any
Returns
string
cancel
Submit
cancelSubmit
(
formEl
:
any
,
phxEvent
:
any
)
:
void
Parameters
formEl
:
any
phxEvent
:
any
Returns
void
closest
Component
ID
closestComponentID
(
targetCtx
:
any
)
:
any
Parameters
targetCtx
:
any
Returns
any
component
ID
componentID
(
el
:
any
)
:
number
Parameters
el
:
any
Returns
number
component
Patch
componentPatch
(
diff
:
any
,
cid
:
any
)
:
boolean
Parameters
diff
:
any
cid
:
any
Returns
boolean
connect
Params
connectParams
(
liveReferer
:
any
)
:
Record
<
string
,
unknown
>
Parameters
liveReferer
:
any
Returns
Record
<
string
,
unknown
>
delayed
Disconnected
delayedDisconnected
()
:
void
Returns
void
destroy
destroy
(
callback
?:
()
=>
void
)
:
void
Parameters
callback
:
()
=>
void
= ...
Returns
void
destroy
All
Children
destroyAllChildren
()
:
void
Returns
void
destroy
Descendent
destroyDescendent
(
id
:
any
)
:
void
Parameters
id
:
any
Returns
void
destroy
Hook
destroyHook
(
hook
:
any
)
:
void
Parameters
hook
:
any
Returns
void
destroy
Portal
Elements
destroyPortalElements
()
:
void
Returns
void
disable
Form
disableForm
(
formEl
:
HTMLFormElement
,
phxEvent
:
string
,
opts
?:
{}
,
)
:
(
number
|
Element
[]
|
{
[
key
:
string
]:
any
}
)
[]
Parameters
formEl
:
HTMLFormElement
phxEvent
:
string
opts
:
{}
= {}
Returns (
number
|
Element
[]
|
{
[
key
:
string
]:
any
}
)
[]
dispatch
Uploads
dispatchUploads
(
targetCtx
:
any
,
name
:
any
,
filesOrBlobs
:
any
)
:
void
Parameters
targetCtx
:
any
name
:
any
filesOrBlobs
:
any
Returns
void
display
Error
displayError
(
classes
:
any
,
details
?:
{}
)
:
void
Parameters
classes
:
any
details
:
{}
= {}
Returns
void
drop
Pending
Refs
dropPendingRefs
()
:
void
Returns
void
drop
Portal
Element
Id
dropPortalElementId
(
id
:
any
)
:
void
Parameters
id
:
any
Returns
void
each
Child
eachChild
(
callback
:
any
)
:
void
Parameters
callback
:
any
Returns
void
exec
All
execAll
(
binding
:
any
)
:
void
Parameters
binding
:
any
Returns
void
exec
New
Mounted
execNewMounted
(
parent
?:
Document
)
:
void
Parameters
parent
:
Document
= document
Returns
void
expand
URL
expandURL
(
to
:
any
)
:
any
Parameters
to
:
any
Returns
any
extract
Meta
extractMeta
(
el
:
any
,
meta
:
any
,
value
:
any
)
:
any
Parameters
el
:
any
meta
:
any
value
:
any
Returns
any
get
Child
By
Id
getChildById
(
id
:
any
)
:
default
Parameters
id
:
any
Returns
default
get
Descendent
By
El
getDescendentByEl
(
el
:
any
)
:
default
Parameters
el
:
any
Returns
default
get
Forms
For
Recovery
getFormsForRecovery
()
:
{}
Returns
{}
get
Hook
getHook
(
el
:
any
)
:
ViewHook
<
HTMLElement
>
Parameters
el
:
any
Returns
ViewHook
<
HTMLElement
>
get
Scheduled
Submit
getScheduledSubmit
(
formEl
:
any
)
:
any
Parameters
formEl
:
any
Returns
any
get
Session
getSession
()
:
string
Returns
string
get
Static
getStatic
()
:
string
Returns
string
handle
Failed
Entry
Preflight
handleFailedEntryPreflight
(
uploadRef
:
any
,
reason
:
any
,
uploader
:
any
)
:
void
Parameters
uploadRef
:
any
reason
:
any
uploader
:
any
Returns
void
hide
Loader
hideLoader
()
:
void
Returns
void
is
Acked
isAcked
(
ref
:
any
)
:
boolean
Parameters
ref
:
any
Returns
boolean
is
Connected
isConnected
()
:
any
Returns
any
is
Destroyed
isDestroyed
()
:
boolean
Returns
boolean
is
Join
Pending
isJoinPending
()
:
boolean
Returns
boolean
is
Main
isMain
()
:
boolean
Returns
boolean
join
join
(
callback
?:
any
)
:
void
Parameters
Optional
callback
:
any
Returns
void
join
Child
joinChild
(
el
:
any
)
:
boolean
Parameters
el
:
any
Returns
boolean
join
Dead
joinDead
()
:
void
Returns
void
join
New
Children
joinNewChildren
()
:
void
Returns
void
log
log
(
kind
:
string
,
msgCallback
:
()
=>
[
string
,
unknown
]
|
[
string
]
,
diagnostic
?:
{
code
:
string
;
context
?:
LiveViewDiagnosticContext
;
level
?:
LiveViewDiagnosticLevel
;
metadata
?:
()
=>
LiveViewDiagnosticMetadata
;
}
,
)
:
void
Parameters
kind
:
string
msgCallback
:
()
=>
[
string
,
unknown
]
|
[
string
]
Optional
diagnostic
:
{
code
:
string
;
context
?:
LiveViewDiagnosticContext
;
level
?:
LiveViewDiagnosticLevel
;
metadata
?:
()
=>
LiveViewDiagnosticMetadata
;
}
Returns
void
log
Error
logError
(
code
:
string
,
message
:
string
,
metadata
:
Record
<
string
,
unknown
>
,
context
?:
LiveViewDiagnosticContext
,
)
:
void
Parameters
code
:
string
message
:
string
metadata
:
Record
<
string
,
unknown
>
context
:
LiveViewDiagnosticContext
= ...
Returns
void
maybe
Add
New
Hook
maybeAddNewHook
(
el
:
any
)
:
void
Parameters
el
:
any
Returns
void
maybe
Mounted
maybeMounted
(
el
:
any
)
:
void
Parameters
el
:
any
Returns
void
maybe
Push
Components
Destroyed
maybePushComponentsDestroyed
(
destroyedCIDs
:
any
)
:
void
Parameters
destroyedCIDs
:
any
Returns
void
maybe
Recover
Forms
maybeRecoverForms
(
html
:
any
,
callback
:
any
)
:
any
Parameters
html
:
any
callback
:
any
Returns
any
on
All
Child
Joins
Complete
onAllChildJoinsComplete
()
:
void
Returns
void
on
Channel
onChannel
(
event
:
any
,
cb
:
any
)
:
void
Parameters
event
:
any
cb
:
any
Returns
void
on
Close
onClose
(
reason
:
any
)
:
void
Parameters
reason
:
any
Returns
void
on
Error
onError
(
reason
:
any
)
:
void
Parameters
reason
:
any
Returns
void
on
Join
onJoin
(
resp
:
any
)
:
void
Parameters
resp
:
any
Returns
void
on
Join
Complete
onJoinComplete
(
__namedParameters
:
{
live_patch
:
any
}
,
html
:
any
,
streams
:
any
,
events
:
any
,
)
:
void
Parameters
__namedParameters
:
{
live_patch
:
any
}
html
:
any
streams
:
any
events
:
any
Returns
void
on
Join
Error
onJoinError
(
resp
:
any
)
:
void
Parameters
resp
:
any
Returns
void
on
Live
Patch
onLivePatch
(
redir
:
any
)
:
void
Parameters
redir
:
any
Returns
void
on
Live
Redirect
onLiveRedirect
(
redir
:
any
)
:
void
Parameters
redir
:
any
Returns
void
on
Redirect
onRedirect
(
__namedParameters
:
{
flash
?:
string
;
reloadToken
?:
string
;
to
:
string
}
,
)
:
void
Parameters
__namedParameters
:
{
flash
?:
string
;
reloadToken
?:
string
;
to
:
string
}
Returns
void
owns
Element
ownsElement
(
el
:
any
)
:
boolean
Parameters
el
:
any
Returns
boolean
perform
Patch
performPatch
(
patch
:
any
,
pruneCids
:
any
,
isJoinPatch
?:
boolean
)
:
boolean
Parameters
patch
:
any
pruneCids
:
any
isJoinPatch
:
boolean
= false
Returns
boolean
push
Event
pushEvent
(
type
:
any
,
el
:
any
,
targetCtx
:
any
,
phxEvent
:
any
,
meta
:
any
,
opts
?:
{
[
key
:
string
]:
any
}
,
onReply
?:
any
,
)
:
void
Parameters
type
:
any
el
:
any
targetCtx
:
any
phxEvent
:
any
meta
:
any
opts
:
{
[
key
:
string
]:
any
}
= {}
Optional
onReply
:
any
Returns
void
push
File
Progress
pushFileProgress
(
fileEl
:
any
,
entryRef
:
any
,
progress
:
any
,
onReply
?:
()
=>
void
,
)
:
void
Parameters
fileEl
:
any
entryRef
:
any
progress
:
any
onReply
:
()
=>
void
= ...
Returns
void
push
Form
Recovery
pushFormRecovery
(
oldForm
:
HTMLFormElement
,
newForm
:
HTMLFormElement
,
templateDom
:
DocumentFragment
|
Element
,
callback
:
()
=>
void
,
)
:
void
Parameters
oldForm
:
HTMLFormElement
newForm
:
HTMLFormElement
templateDom
:
DocumentFragment
|
Element
callback
:
()
=>
void
Returns
void
push
Form
Submit
pushFormSubmit
(
formEl
:
any
,
targetCtx
:
any
,
phxEvent
:
any
,
submitter
:
any
,
opts
:
any
,
onReply
:
any
,
)
:
boolean
Parameters
formEl
:
any
targetCtx
:
any
phxEvent
:
any
submitter
:
any
opts
:
any
onReply
:
any
Returns
boolean
push
Hook
Event
pushHookEvent
(
el
:
any
,
targetCtx
:
any
,
event
:
any
,
payload
:
any
,
)
:
Promise
<
{
ref
:
number
;
reply
:
any
}
>
Parameters
el
:
any
targetCtx
:
any
event
:
any
payload
:
any
Returns
Promise
<
{
ref
:
number
;
reply
:
any
}
>
push
Input
pushInput
(
inputEl
:
any
,
targetCtx
:
any
,
forceCid
:
any
,
phxEvent
:
any
,
opts
:
any
,
callback
?:
any
,
)
:
void
Parameters
inputEl
:
any
targetCtx
:
any
forceCid
:
any
phxEvent
:
any
opts
:
any
Optional
callback
:
any
Returns
void
push
Link
Patch
pushLinkPatch
(
e
:
any
,
href
:
any
,
targetEl
:
any
,
callback
:
any
)
:
void
Parameters
e
:
any
href
:
any
targetEl
:
any
callback
:
any
Returns
void
push
Portal
Element
Id
pushPortalElementId
(
id
:
any
)
:
void
Parameters
id
:
any
Returns
void
push
With
Reply
pushWithReply
(
refGenerator
:
any
,
event
:
any
,
payload
:
any
,
)
:
Promise
<
|
{
ref
:
number
;
reply
:
any
;
resp
:
any
;
type
:
"ok"
}
|
{
context
:
LiveViewDiagnosticContext
;
error
:
string
;
type
:
"error"
}
,
>
Parameters
refGenerator
:
any
event
:
any
payload
:
any
Returns
Promise
<
|
{
ref
:
number
;
reply
:
any
;
resp
:
any
;
type
:
"ok"
}
|
{
context
:
LiveViewDiagnosticContext
;
error
:
string
;
type
:
"error"
}
,
>
put
Ref
putRef
(
elements
:
{
el
:
Element
;
loading
:
boolean
;
lock
:
boolean
}
[]
,
phxEvent
:
string
,
eventType
:
string
,
opts
?:
{
[
key
:
string
]:
any
}
,
)
:
(
number
|
Element
[]
|
{
[
key
:
string
]:
any
}
)
[]
Parameters
elements
:
{
el
:
Element
;
loading
:
boolean
;
lock
:
boolean
}
[]
phxEvent
:
string
eventType
:
string
opts
:
{
[
key
:
string
]:
any
}
= {}
Returns (
number
|
Element
[]
|
{
[
key
:
string
]:
any
}
)
[]
ref
Src
refSrc
()
:
string
Returns
string
render
Container
renderContainer
(
diff
:
any
,
kind
:
any
)
:
any
Parameters
diff
:
any
kind
:
any
Returns
any
schedule
Submit
scheduleSubmit
(
formEl
:
any
,
ref
:
any
,
opts
:
any
,
callback
:
any
)
:
boolean
Parameters
formEl
:
any
ref
:
any
opts
:
any
callback
:
any
Returns
boolean
serialize
Form
serializeForm
(
form
:
HTMLFormElement
,
opts
?:
{
[
key
:
string
]:
any
}
,
onlyNames
?:
string
[]
,
)
:
string
Parameters
form
:
HTMLFormElement
opts
:
{
[
key
:
string
]:
any
}
= {}
onlyNames
:
string
[]
= []
Returns
string
set
Container
Classes
setContainerClasses
(
...
classes
:
any
[]
)
:
void
Parameters
...
classes
:
any
[]
Returns
void
set
Href
setHref
(
href
:
any
)
:
void
Parameters
href
:
any
Returns
void
set
Redirect
setRedirect
(
href
:
any
)
:
void
Parameters
href
:
any
Returns
void
show
Loader
showLoader
(
timeout
?:
number
)
:
void
Parameters
Optional
timeout
:
number
Returns
void
submit
Form
submitForm
(
form
:
any
,
targetCtx
:
any
,
phxEvent
:
any
,
submitter
:
any
,
opts
?:
{}
,
)
:
void
Parameters
form
:
any
targetCtx
:
any
phxEvent
:
any
submitter
:
any
opts
:
{}
= {}
Returns
void
target
Component
ID
targetComponentID
(
target
:
any
,
targetCtx
:
any
,
opts
?:
{
[
key
:
string
]:
any
}
,
)
:
any
Parameters
target
:
any
targetCtx
:
any
opts
:
{
[
key
:
string
]:
any
}
= {}
Returns
any
target
Ctx
Element
targetCtxElement
(
targetCtx
:
any
)
:
any
Parameters
targetCtx
:
any
Returns
any
transition
transition
(
time
:
any
,
onStart
:
any
,
onDone
?:
()
=>
void
)
:
void
Parameters
time
:
any
onStart
:
any
onDone
:
()
=>
void
= ...
Returns
void
trigger
Awaiting
Submit
triggerAwaitingSubmit
(
formEl
:
any
,
phxEvent
:
any
)
:
void
Parameters
formEl
:
any
phxEvent
:
any
Returns
void
trigger
Before
Update
Hook
triggerBeforeUpdateHook
(
fromEl
:
any
,
toEl
:
any
)
:
ViewHook
<
HTMLElement
>
Parameters
fromEl
:
any
toEl
:
any
Returns
ViewHook
<
HTMLElement
>
trigger
Reconnected
triggerReconnected
()
:
void
Returns
void
undo
El
Ref
undoElRef
(
el
:
any
,
ref
:
any
,
phxEvent
:
any
)
:
void
Parameters
el
:
any
ref
:
any
phxEvent
:
any
Returns
void
undo
Refs
undoRefs
(
ref
:
any
,
phxEvent
:
any
,
onlyEls
?:
any
)
:
void
Parameters
ref
:
any
phxEvent
:
any
Optional
onlyEls
:
any
Returns
void
update
update
(
diff
:
any
,
events
:
any
,
isPending
?:
boolean
)
:
boolean
Parameters
diff
:
any
events
:
any
isPending
:
boolean
= false
Returns
boolean
upload
Files
uploadFiles
(
formEl
:
any
,
phxEvent
:
any
,
targetCtx
:
any
,
ref
:
any
,
cid
:
any
,
onComplete
:
any
,
)
:
void
Parameters
formEl
:
any
phxEvent
:
any
targetCtx
:
any
ref
:
any
cid
:
any
onComplete
:
any
Returns
void
within
Targets
withinTargets
(
phxTarget
:
any
,
callback
:
any
,
dom
?:
QueryableNode
)
:
any
Parameters
phxTarget
:
any
callback
:
any
dom
:
QueryableNode
= document
Returns
any
wrap
Push
wrapPush
(
callerPush
:
any
,
receives
:
any
)
:
void
Parameters
callerPush
:
any
receives
:
any
Returns
void
Static
closest
View
closestView
(
el
:
any
)
:
any
Parameters
el
:
any
Returns
any
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
el
id
is
Dead
live
Socket
portal
Element
Ids
root
Methods
ack
Join
add
Hook
after
Elements
Removed
all
apply
Diff
apply
Join
Patch
apply
Pending
Updates
attach
True
Doc
El
bind
Channel
binding
cancel
Submit
closest
Component
ID
component
ID
component
Patch
connect
Params
delayed
Disconnected
destroy
destroy
All
Children
destroy
Descendent
destroy
Hook
destroy
Portal
Elements
disable
Form
dispatch
Uploads
display
Error
drop
Pending
Refs
drop
Portal
Element
Id
each
Child
exec
All
exec
New
Mounted
expand
URL
extract
Meta
get
Child
By
Id
get
Descendent
By
El
get
Forms
For
Recovery
get
Hook
get
Scheduled
Submit
get
Session
get
Static
handle
Failed
Entry
Preflight
hide
Loader
is
Acked
is
Connected
is
Destroyed
is
Join
Pending
is
Main
join
join
Child
join
Dead
join
New
Children
log
log
Error
maybe
Add
New
Hook
maybe
Mounted
maybe
Push
Components
Destroyed
maybe
Recover
Forms
on
All
Child
Joins
Complete
on
Channel
on
Close
on
Error
on
Join
on
Join
Complete
on
Join
Error
on
Live
Patch
on
Live
Redirect
on
Redirect
owns
Element
perform
Patch
push
Event
push
File
Progress
push
Form
Recovery
push
Form
Submit
push
Hook
Event
push
Input
push
Link
Patch
push
Portal
Element
Id
push
With
Reply
put
Ref
ref
Src
render
Container
schedule
Submit
serialize
Form
set
Container
Classes
set
Href
set
Redirect
show
Loader
submit
Form
target
Component
ID
target
Ctx
Element
transition
trigger
Awaiting
Submit
trigger
Before
Update
Hook
trigger
Reconnected
undo
El
Ref
undo
Refs
update
upload
Files
within
Targets
wrap
Push
closest
View
phoenix_live_view
Loading...