Class orion.editor.ContentAssistWidget
Displays proposals from a orion.editor.ContentAssist.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/contentAssist.js>.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
orion.editor.ContentAssistWidget(contentAssist, parentNode)
Creates a ContentAssistWidget that will display proposals from the given orion.editor.ContentAssist
in the given
parentNode. |
| Method Attributes | Method Name and Description |
|---|---|
|
hide()
|
|
|
position()
|
|
|
selectNode(nodeIndex)
Visually selects the node at the specified nodeIndex
by updating its CSS class and scrolling it into view
if necessary.
|
|
|
setContentAssistMode(mode)
|
|
|
show()
|
Class Detail
orion.editor.ContentAssistWidget(contentAssist, parentNode)
Creates a ContentAssistWidget that will display proposals from the given orion.editor.ContentAssist
in the given
parentNode. Clicking a proposal will cause the ContentAssist to apply that proposal.
- Parameters:
- {orion.editor.ContentAssist} contentAssist
- {String|DomNode} parentNode Optional
- The ID or DOM node to use as the parent for displaying proposals. If not provided,
a new DIV will be created inside <body> and assigned the CSS class
contentassist.
Method Detail
hide()
position()
selectNode(nodeIndex)
Visually selects the node at the specified nodeIndex
by updating its CSS class and scrolling it into view
if necessary.
- Parameters:
- nodeIndex
setContentAssistMode(mode)
- Parameters:
- mode
show()