LWT JavaScript API
Preparing search index...
modules/vocabulary/stores/word_store
WordStoreState
Interface WordStoreState
Word store state interface.
interface
WordStoreState
{
annTextSize
:
number
;
audioPosition
:
number
;
audioUri
:
string
|
null
;
dictLinks
:
DictLinks
;
displayStatTrans
:
number
;
isEditModalOpen
:
boolean
;
isInitialized
:
boolean
;
isLoading
:
boolean
;
isPopoverOpen
:
boolean
;
langId
:
number
;
modeTrans
:
number
;
paragraphStyles
:
string
;
popoverTargetElement
:
HTMLElement
|
null
;
removeSpaces
:
boolean
;
renderedHtml
:
string
;
rightToLeft
:
boolean
;
selectedHex
:
string
|
null
;
selectedPosition
:
number
|
null
;
showAll
:
boolean
;
showLearning
:
number
;
showTranslations
:
boolean
;
sourceUri
:
string
|
null
;
termDelimiter
:
string
;
textId
:
number
;
textSize
:
number
;
title
:
string
;
words
:
WordData
[]
;
wordsByHex
:
Map
<
string
,
WordData
[]
>
;
closeEditModal
()
:
void
;
closePopover
()
:
void
;
createQuickWord
(
hex
:
string
,
position
:
number
,
status
:
98
|
99
,
)
:
Promise
<
boolean
>
;
deleteWord
(
hex
:
string
)
:
Promise
<
boolean
>
;
getDictUrl
(
which
:
"dict1"
|
"dict2"
|
"translator"
)
:
string
;
getRenderedHtml
()
:
string
;
getSelectedWord
()
:
WordData
|
null
;
getWordsByHex
(
hex
:
string
)
:
WordData
[]
;
initFromData
(
words
:
TextWord
[]
,
config
:
TextReadingConfig
)
:
void
;
loadText
(
textId
:
number
)
:
Promise
<
void
>
;
openEditModal
()
:
void
;
selectWord
(
hex
:
string
,
position
:
number
,
targetElement
?:
HTMLElement
,
)
:
void
;
setStatus
(
hex
:
string
,
status
:
number
)
:
Promise
<
boolean
>
;
setTextHtml
(
el
:
HTMLElement
)
:
void
;
updateWordInStore
(
hex
:
string
,
updates
:
Partial
<
WordData
>
)
:
void
;
}
Index
Properties
ann
Text
Size
audio
Position
audio
Uri
dict
Links
display
Stat
Trans
is
Edit
Modal
Open
is
Initialized
is
Loading
is
Popover
Open
lang
Id
mode
Trans
paragraph
Styles
popover
Target
Element
remove
Spaces
rendered
Html
right
To
Left
selected
Hex
selected
Position
show
All
show
Learning
show
Translations
source
Uri
term
Delimiter
text
Id
text
Size
title
words
words
By
Hex
Methods
close
Edit
Modal
close
Popover
create
Quick
Word
delete
Word
get
Dict
Url
get
Rendered
Html
get
Selected
Word
get
Words
By
Hex
init
From
Data
load
Text
open
Edit
Modal
select
Word
set
Status
set
Text
Html
update
Word
In
Store
Properties
ann
Text
Size
annTextSize
:
number
audio
Position
audioPosition
:
number
audio
Uri
audioUri
:
string
|
null
dict
Links
dictLinks
:
DictLinks
display
Stat
Trans
displayStatTrans
:
number
is
Edit
Modal
Open
isEditModalOpen
:
boolean
is
Initialized
isInitialized
:
boolean
is
Loading
isLoading
:
boolean
is
Popover
Open
isPopoverOpen
:
boolean
lang
Id
langId
:
number
mode
Trans
modeTrans
:
number
paragraph
Styles
paragraphStyles
:
string
popover
Target
Element
popoverTargetElement
:
HTMLElement
|
null
remove
Spaces
removeSpaces
:
boolean
rendered
Html
renderedHtml
:
string
right
To
Left
rightToLeft
:
boolean
selected
Hex
selectedHex
:
string
|
null
selected
Position
selectedPosition
:
number
|
null
show
All
showAll
:
boolean
show
Learning
showLearning
:
number
show
Translations
showTranslations
:
boolean
source
Uri
sourceUri
:
string
|
null
term
Delimiter
termDelimiter
:
string
text
Id
textId
:
number
text
Size
textSize
:
number
title
title
:
string
words
words
:
WordData
[]
words
By
Hex
wordsByHex
:
Map
<
string
,
WordData
[]
>
Methods
close
Edit
Modal
closeEditModal
()
:
void
Returns
void
close
Popover
closePopover
()
:
void
Returns
void
create
Quick
Word
createQuickWord
(
hex
:
string
,
position
:
number
,
status
:
98
|
99
,
)
:
Promise
<
boolean
>
Parameters
hex
:
string
position
:
number
status
:
98
|
99
Returns
Promise
<
boolean
>
delete
Word
deleteWord
(
hex
:
string
)
:
Promise
<
boolean
>
Parameters
hex
:
string
Returns
Promise
<
boolean
>
get
Dict
Url
getDictUrl
(
which
:
"dict1"
|
"dict2"
|
"translator"
)
:
string
Parameters
which
:
"dict1"
|
"dict2"
|
"translator"
Returns
string
get
Rendered
Html
getRenderedHtml
()
:
string
Returns
string
get
Selected
Word
getSelectedWord
()
:
WordData
|
null
Returns
WordData
|
null
get
Words
By
Hex
getWordsByHex
(
hex
:
string
)
:
WordData
[]
Parameters
hex
:
string
Returns
WordData
[]
init
From
Data
initFromData
(
words
:
TextWord
[]
,
config
:
TextReadingConfig
)
:
void
Parameters
words
:
TextWord
[]
config
:
TextReadingConfig
Returns
void
load
Text
loadText
(
textId
:
number
)
:
Promise
<
void
>
Parameters
textId
:
number
Returns
Promise
<
void
>
open
Edit
Modal
openEditModal
()
:
void
Returns
void
select
Word
selectWord
(
hex
:
string
,
position
:
number
,
targetElement
?:
HTMLElement
)
:
void
Parameters
hex
:
string
position
:
number
Optional
targetElement
:
HTMLElement
Returns
void
set
Status
setStatus
(
hex
:
string
,
status
:
number
)
:
Promise
<
boolean
>
Parameters
hex
:
string
status
:
number
Returns
Promise
<
boolean
>
set
Text
Html
setTextHtml
(
el
:
HTMLElement
)
:
void
Parameters
el
:
HTMLElement
Returns
void
update
Word
In
Store
updateWordInStore
(
hex
:
string
,
updates
:
Partial
<
WordData
>
)
:
void
Parameters
hex
:
string
updates
:
Partial
<
WordData
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
ann
Text
Size
audio
Position
audio
Uri
dict
Links
display
Stat
Trans
is
Edit
Modal
Open
is
Initialized
is
Loading
is
Popover
Open
lang
Id
mode
Trans
paragraph
Styles
popover
Target
Element
remove
Spaces
rendered
Html
right
To
Left
selected
Hex
selected
Position
show
All
show
Learning
show
Translations
source
Uri
term
Delimiter
text
Id
text
Size
title
words
words
By
Hex
Methods
close
Edit
Modal
close
Popover
create
Quick
Word
delete
Word
get
Dict
Url
get
Rendered
Html
get
Selected
Word
get
Words
By
Hex
init
From
Data
load
Text
open
Edit
Modal
select
Word
set
Status
set
Text
Html
update
Word
In
Store
LWT JavaScript API
Loading...
Word store state interface.