LWT JavaScript API
Preparing search index...
modules/vocabulary/components/word_modal
WordModalData
Interface WordModalData
Word modal Alpine.js component interface.
interface
WordModalData
{
formStore
:
WordFormStoreState
;
hasNotes
:
boolean
;
hasRomanization
:
boolean
;
hasTags
:
boolean
;
hasTranslation
:
boolean
;
hasWordId
:
boolean
;
isLoading
:
boolean
;
isOpen
:
boolean
;
isUnknown
:
boolean
;
modalTitle
:
string
;
statuses
:
StatusInfo
[]
;
store
:
WordStoreState
;
viewMode
:
ViewMode
;
word
:
WordData
|
null
;
wordNotes
:
string
;
wordRomanization
:
string
;
wordTags
:
string
;
wordText
:
string
;
wordTranslation
:
string
;
close
()
:
void
;
deleteWord
()
:
Promise
<
void
>
;
getDictUrl
(
which
:
"dict1"
|
"dict2"
|
"translator"
)
:
string
;
getEditUrl
()
:
string
;
getStatusButtonClass
(
status
:
number
)
:
string
;
hasDictUrl
(
which
:
"dict1"
|
"dict2"
|
"translator"
)
:
boolean
;
hideEditForm
()
:
void
;
init
()
:
void
;
isCurrentStatus
(
status
:
number
)
:
boolean
;
markIgnored
()
:
Promise
<
void
>
;
markWellKnown
()
:
Promise
<
void
>
;
onFormCancelled
()
:
void
;
onFormSaved
()
:
void
;
setStatus
(
status
:
number
)
:
Promise
<
void
>
;
showEditForm
()
:
Promise
<
void
>
;
speakWord
()
:
void
;
}
Index
Properties
form
Store
has
Notes
has
Romanization
has
Tags
has
Translation
has
Word
Id
is
Loading
is
Open
is
Unknown
modal
Title
statuses
store
view
Mode
word
word
Notes
word
Romanization
word
Tags
word
Text
word
Translation
Methods
close
delete
Word
get
Dict
Url
get
Edit
Url
get
Status
Button
Class
has
Dict
Url
hide
Edit
Form
init
is
Current
Status
mark
Ignored
mark
Well
Known
on
Form
Cancelled
on
Form
Saved
set
Status
show
Edit
Form
speak
Word
Properties
Readonly
form
Store
formStore
:
WordFormStoreState
Readonly
has
Notes
hasNotes
:
boolean
Readonly
has
Romanization
hasRomanization
:
boolean
Readonly
has
Tags
hasTags
:
boolean
Readonly
has
Translation
hasTranslation
:
boolean
Readonly
has
Word
Id
hasWordId
:
boolean
Readonly
is
Loading
isLoading
:
boolean
Readonly
is
Open
isOpen
:
boolean
Readonly
is
Unknown
isUnknown
:
boolean
Readonly
modal
Title
modalTitle
:
string
Readonly
statuses
statuses
:
StatusInfo
[]
Readonly
store
store
:
WordStoreState
view
Mode
viewMode
:
ViewMode
Readonly
word
word
:
WordData
|
null
Readonly
word
Notes
wordNotes
:
string
Readonly
word
Romanization
wordRomanization
:
string
Readonly
word
Tags
wordTags
:
string
Readonly
word
Text
wordText
:
string
Readonly
word
Translation
wordTranslation
:
string
Methods
close
close
()
:
void
Returns
void
delete
Word
deleteWord
()
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Dict
Url
getDictUrl
(
which
:
"dict1"
|
"dict2"
|
"translator"
)
:
string
Parameters
which
:
"dict1"
|
"dict2"
|
"translator"
Returns
string
get
Edit
Url
getEditUrl
()
:
string
Returns
string
get
Status
Button
Class
getStatusButtonClass
(
status
:
number
)
:
string
Parameters
status
:
number
Returns
string
has
Dict
Url
hasDictUrl
(
which
:
"dict1"
|
"dict2"
|
"translator"
)
:
boolean
Parameters
which
:
"dict1"
|
"dict2"
|
"translator"
Returns
boolean
hide
Edit
Form
hideEditForm
()
:
void
Returns
void
init
init
()
:
void
Returns
void
is
Current
Status
isCurrentStatus
(
status
:
number
)
:
boolean
Parameters
status
:
number
Returns
boolean
mark
Ignored
markIgnored
()
:
Promise
<
void
>
Returns
Promise
<
void
>
mark
Well
Known
markWellKnown
()
:
Promise
<
void
>
Returns
Promise
<
void
>
on
Form
Cancelled
onFormCancelled
()
:
void
Returns
void
on
Form
Saved
onFormSaved
()
:
void
Returns
void
set
Status
setStatus
(
status
:
number
)
:
Promise
<
void
>
Parameters
status
:
number
Returns
Promise
<
void
>
show
Edit
Form
showEditForm
()
:
Promise
<
void
>
Returns
Promise
<
void
>
speak
Word
speakWord
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
form
Store
has
Notes
has
Romanization
has
Tags
has
Translation
has
Word
Id
is
Loading
is
Open
is
Unknown
modal
Title
statuses
store
view
Mode
word
word
Notes
word
Romanization
word
Tags
word
Text
word
Translation
Methods
close
delete
Word
get
Dict
Url
get
Edit
Url
get
Status
Button
Class
has
Dict
Url
hide
Edit
Form
init
is
Current
Status
mark
Ignored
mark
Well
Known
on
Form
Cancelled
on
Form
Saved
set
Status
show
Edit
Form
speak
Word
LWT JavaScript API
Loading...
Word modal Alpine.js component interface.