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.

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

renderFragments() #

Position results markers

Source:
Position results markers

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([noRender]) #

Update search result fragments

Parameters:

Name Type Attributes Description
noRender boolean optional

Don't render the fragments after updating

Source:
Update search result fragments

updateUserConfig() #

Remember inputs in the dialog in user config.

Source:
Remember inputs in the dialog in user config.