ve.ScriptManager.FindAndReplace

ve.Component.ve.ScriptManager. ve.ScriptManager.FindAndReplace

Internal sub-component of ve.ScriptManager.

Constructor:
Instance:
  • .cancel_search: boolean
  • .is_searching=false: boolean
  • .matches=[]: Array<string>
  • .selected_index=-1: number

Constructor

new ve.ScriptManager.FindAndReplace()

Source:

Methods

draw(arg0_element, arg1_new_results, arg2_reset)

Draws the container or appends results.

  • Method of: ve.ScriptManager.FindAndReplace
Source:
Parameters:
Name Type Description
arg0_element HTMLElement

The container element.

arg1_new_results Array

Array of new matches to append.

arg2_reset Boolean

If true, clears the list and redraws the container structure.

(async) execute(arg0_root_path, arg1_search_string, arg2_replace_string, arg3_optionsopt, arg4_callbacksopt)

Async execution of Find (and optionally Replace All). Streaming results are returned via callbacks.

  • Method of: ve.ScriptManager.FindAndReplace
Source:
Parameters:
Name Type Attributes Description
arg0_root_path string
arg1_search_string string
arg2_replace_string string
arg3_options Object <optional>
arg4_callbacks Object <optional>

Callback object/map.

getFiles(arg0_matches) → {Array.<string>}

Returns all file paths which match the given patterns.

  • Method of: ve.ScriptManager.FindAndReplace
Source:
Parameters:
Name Type Description
arg0_matches Array.<string>
Returns:
Type:
Array.<string>