API Reference
Namespaces
Classes
Events
Global
Externals

Namespace: cq-lookup-dialog

WebComponents. cq-lookup-dialog

Search/lookup dialog for changing the main symbol of the chart and adding comparisons.

Since:
  • 8.8.0

Methods


acceptText(value)

Handles accepted text by the input and sends text to Lookup Driver. Passes results to WebComponents.cq-lookup-dialog#results.

Parameters:
Name Type Description
value string

close()

Closes the dialog and resets the input.


open(params)

Opens the dialog tag and displays it over the chart. Works with the dialog channel.

Parameters:
Name Type Description
params object
Properties
Name Type Argument Description
caller HTMLElement <optional>

caller element that triggered the opening

Since:
  • 9.0.0 respect caller element cq-maintain-case for symbols added from input box


reset()

Resets the dialog back to its default state with no search results


results(resultsArr)

Processes the results returned from the CIQ.ChartEngine.Driver.Lookup

Parameters:
Name Type Description
resultsArr Array.<object>

selectItem(value)

Function that triggers when an item is selected from either the input or results list.

Parameters:
Name Type Description
value string | object

Either the value of the item selected or a symbolObject containing the symbol.

Since:
  • 8.8.0 value param accepts a string or symbolObject.


setFilter(e)

Sets a selected filter as the activeFilter that is applied to WebComponents.cq-lookup-dialog#acceptText

Parameters:
Name Type Description
e PointerEvent

Emitted pointer event