Function: useEditorSearch()
useEditorSearch():
object
Returns
object
closeSearch()
closeSearch: () =>
void
Returns
void
currentRange
currentRange:
Range
cursor
cursor:
number
isSearchOpen
isSearchOpen:
boolean
next()
next: () =>
void
Returns
void
openSearch()
openSearch: () =>
void
Returns
void
prev()
prev: () =>
void
Returns
void
ranges
ranges:
Range[]
replace()
replace: (
str,onUpdate?) =>void
Parameters
| Parameter | Type |
|---|---|
str | string |
onUpdate? | () => void |
Returns
void
replaceAll()
replaceAll: (
str,onUpdate?) =>void
Parameters
| Parameter | Type |
|---|---|
str | string |
onUpdate? | () => void |
Returns
void
scrollToRangeOrIndex()
scrollToRangeOrIndex: (
range,options?) =>void
Parameters
| Parameter | Type |
|---|---|
range | number | Range |
options? | object |
options.behavior? | ScrollBehavior |
options.ignoreIfInView? | boolean |
Returns
void
search
search:
string
setIsSearchOpen()
setIsSearchOpen: (
value) =>void
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
setSearch()
setSearch: (
term) =>void
Parameters
| Parameter | Type |
|---|---|
term | null | string |
Returns
void
toggleSearch()
toggleSearch: () =>
void
Returns
void
total
total:
number=rangeCount