JSONPath Tools / @jsonpath-tools/jsonpath / TooltipService
Class: TooltipService
Provides tooltips with information about query parts.
Constructors
new TooltipService()
ts
new TooltipService(queryOptions): TooltipService
Parameters
queryOptions
Query options.
Returns
TooltipService
Methods
provideTooltip()
ts
provideTooltip(
query,
queryArgument,
queryArgumentType,
position): null | Tooltip
Provides a tooltip at the given position in the query text.
Parameters
query
Query.
queryArgument
Query argument.
undefined
| JSONValue
queryArgumentType
Query argument type.
position
number
Position in the query text (character index).
Returns
null
| Tooltip