Namespace: cq-share-dialog

WebComponents. cq-share-dialog

Share Dialog web component <cq-share-dialog>.

Example

<cq-dialog>
	 	<cq-share-dialog>
	 		<div>
	 			<h4 class="title">Share Your Chart</h4>
	 			<cq-separator></cq-separator>
	 			<p>Press this button to generate a shareable image:</p>
	 				<div class="ciq-btn" stxtap="share()">
	 						Create Image
	 				</div>

	 			<div class="share-link-div"></div>

	 			<cq-separator></cq-separator>
	 			<div class="ciq-dialog-cntrls">
	 				<div stxtap="close()" class="ciq-btn">Done</div>
	 			</div>

	 		</div>
	 	</cq-share-dialog>
	 </cq-dialog>

Methods


close()

Closes dialog box

Since:
  • 4.0.0

open()

Opens the nearest WebComponents.cq-dialog to display your dialog.

Since:
  • 4.0.0

share()

Shares a chart with default parameters