Namespace: cq-scriptiq-menu

WebComponents. cq-scriptiq-menu

The ScriptIQ web component <cq-scriptiq-menu>, which displays the names of all stored ScriptIQ scripts along with controls used to manage the scripts.

Only available with the ScriptIQ module.

To enable the ScriptIQ plug-in in sample-template-advanced.html, search for "scriptiq" and uncomment the necessary sections. The template can also be used as a reference to create your own UI for ScriptIQ.

Since:
  • 6.1.0

Example

<cq-heading>ScriptIQ</cq-heading>
		<cq-item><cq-clickable cq-selector="cq-scriptiq-editor" cq-method="open">New Script</cq-clickable></cq-item>
		<cq-scriptiq-menu>
			<cq-scriptiq-content>
				<template>
					<cq-item>
						<cq-label></cq-label>
						<div>
							<span class="ciq-edit"></span>
							<span class="ciq-icon ciq-close"></span>
						</div>
					</cq-item>
				</template>
			</cq-scriptiq-content>
		</cq-scriptiq-menu>
		<cq-separator></cq-separator>
	<cq-heading>Studies</cq-heading>

Methods


initialize(params)

Initializes the component.

Parameters:
Name Type Description
params Object

Optional parameters to control behavior of the menu.

Properties
Name Type Argument Description
template Boolean <optional>

DOM element to attach the menu items.

Since:
  • 6.1.0


renderMenu()

Creates the menu.

Since:
  • 6.1.0