Class orion.editor.ContentAssistWidget
Displays proposals from a orion.editor.ContentAssist.
Defined in: </shared/eclipse/e4/orion/I201306251555/plugins/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()
|
|
setProposals(proposals)
|
|
setSelectedIndex(index)
Sets the index of the currently selected proposal.
|
|
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()
setProposals(proposals)
- Parameters:
- {Object[]} proposals
setSelectedIndex(index)
Sets the index of the currently selected proposal.
- Parameters:
- {Number} index
show()