Class RXBuild.UI.RegexViewer
The RegexViewer holds selectable, self-updating views of the regular expression
Defined in: ui_regex_viewer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
RXBuild.UI.RegexViewer(container, id, className, editor, viewers)
Creates a new instance of RegexViewer
|
Field Attributes | Field Name and Description |
---|---|
The DOM element that will be the happy new parent of this control
|
Method Attributes | Method Name and Description |
---|---|
Refreshes the view only if auto-refresh is active
|
|
invalidate(regexp, inputText)
Notifies the user that the display is no longer uptodate with the regular expression
|
|
setCurrentView(viewIndex)
Sets the currently active viewer to the one with the specified index
|
|
update()
Runs the provided regular expression and updates the results view accordingly
|
Class Detail
RXBuild.UI.RegexViewer(container, id, className, editor, viewers)
Creates a new instance of RegexViewer
Field Detail
{HTMLElement}
container
The DOM element that will be the happy new parent of this control
Method Detail
autoRefresh()
Refreshes the view only if auto-refresh is active
invalidate(regexp, inputText)
Notifies the user that the display is no longer uptodate with the regular expression
- Parameters:
- regexp
- inputText
setCurrentView(viewIndex)
Sets the currently active viewer to the one with the specified index
- Parameters:
- {Number} viewIndex
- The index in this instances viewers property of the view to display
update()
Runs the provided regular expression and updates the results view accordingly