Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
94 lines (67 sloc) 1.95 KB

QdtSelectionToolbar: Create Toolbar with Current Selections

QdtSelectionToolbar

  • Display a toolbar with the current app selections.

Properties

prop type description
title String SELECTIONS
btnText String Clear All

Code

Vanilla JavaScript

var options = {
  config: { /* host, port, appid, etc. */ },
  connections: { /* vizApi, engineAPI */}
}

var qdtComponents = new QdtComponents(options.config, options.connections);

var element = document.getElementById('qdt1');

qdtComponents.render(
  "QdtSelectionToolbar", 
  {
    title: 'MY SELECTIONS',
    btnText: 'Clear Selections',
  }, 
  element
);

React

<QdtComponent
  type="QdtSelectionToolbar"
  props={{
    title: 'MY SELECTIONS',
    btnText: 'Clear Selections',
  }}
/>

Angular

// selection-toolbar.component.ts
import { Component, OnInit, ElementRef } from '@angular/core';

@Component({
  selector: 'selection-toolbar',
  templateUrl: './selection-toolbar.component.html',
})
export class QdtSelectionToolbarComponent implements OnInit {

  constructor(private el: ElementRef) { }

  chart_options = {
    type: 'QdtSelectionToolbar',
    props: {
      title: 'MY SELECTIONS',
      btnText: 'Clear Selections',
    },
  };

  ngOnInit() {

  }

}
<!-- html -->
<selection-toolbar [Component]="chart_options.type" [props]="chart_options.props"></selection-toolbar>

Examples


← Back to All Components

You can’t perform that action at this time.