hints library
A wrapper around the hint/show-hint.js
addon.
Classes
- HintResult
- HintResults
- The return value from a hints (code completion) operation.
- Hints
-
To use codemirror hints (aka code completion), register either a synchronous
or asynchronous hints helper for a given mode (see Hints.registerHintsHelper
and Hints.registerHintsHelperAsync). The second helper type returns a
Future
with the completion results. - HintsOptions
- The plugin understands the following options (the options object will also be passed along to the hinting function, which may understand additional options).
Typedefs
- HintApplier = dynamic Function(CodeMirror editor, HintResult hint, Position? from, Position? to)
- HintRenderer = dynamic Function(Element element, HintResult hint)
- HintsHelper = HintResults? Function(CodeMirror editor, [HintsOptions options])
-
HintsHelperAsync
= Future<
HintResults> Function(CodeMirror editor, [HintsOptions? options]) - HintsResultsPickCallback = void Function(HintResult completion)
- HintsResultsSelectCallback = void Function(HintResult completion, Element element)