Expand all

ve.ui.FindAndReplaceDialog

Extends

Constructor

new ve.ui.FindAndReplaceDialog([config]) #

Find and replace dialog.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Source:
Find and replace dialog.

Properties

maxRenderedResultsstatic #

Maximum number of results to render

Properties:

Type Description
number
Source:
Maximum number of results to render

Methods

findNext() #

Find the next result

findPrevious() #

Find the previous result

Source:
Find the previous result

findSelected() #

Find the selected text on opening

Source:
Find the selected text on opening

focus() #

Focus the dialog

highlightFocused(scrollIntoView) #

Highlight the focused result marker

Parameters:

Name Type Description
scrollIntoView boolean

Scroll the marker into view

Source:
Highlight the focused result marker

onFindChange() #

Handle change events to the find inputs (text or match case)

Source:
Handle change events to the find inputs (text or match case)

onFindReplaceTextEnter(e) #

Handle enter events on the find text and replace text inputs

Parameters:

Name Type Description
e jQuery.Event
Source:
Handle enter events on the find text and replace text inputs

onReplaceAllButtonClick() #

Handle click events on the previous all button

Source:
Handle click events on the previous all button

onReplaceButtonClick() #

Handle click events on the replace button

Source:
Handle click events on the replace button

onReplaceChange() #

Handle change events to the replace input

Source:
Handle change events to the replace input

onSurfaceModelDocumentUpdate() #

Handle documentUpdate events from the surface model

Source:
Handle documentUpdate events from the surface model

onSurfaceViewPosition() #

Handle position events from the surface view

Source:
Handle position events from the surface view

onWindowScroll() #

Handle window scroll events

Source:
Handle window scroll events

renderFragments() #

Position results markers

Source:
Position results markers

renderRangeOfFragments(range) #

Render subset of search result fragments

Parameters:

Name Type Description
range ve.Range

Range of fragments to render. N.B. This is a range in the results array, not a document range.

Source:
Render subset of search result fragments

replace(index) #

Replace the result at a specified index

Parameters:

Name Type Description
index number

Index to replace

Source:
Replace the result at a specified index

setDisabled(disabled) #

Set the disabled state of the toolbar dialog

Parameters:

Name Type Description
disabled boolean

Disable the dialog

Inherited from:
Source:
Set the disabled state of the toolbar dialog

updateFragments() #

Update search result fragments

Source:
Update search result fragments

updateUserConfig() #

Remember inputs in the dialog in user config.

Source:
Remember inputs in the dialog in user config.