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

QdtCurrentSelections: Show Current Selections Bar

QdtCurrentSelections

  • Show all current selections with a Qlik-style bar.

Properties

prop type description
height String 40px

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(
  "QdtCurrentSelections", 
  {
    height: '40px'
  }, 
  element
);

React

<QdtComponent
  type="QdtCurrentSelections"
  props={{
    height: '40px'
  }}
/>

Angular

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

@Component({
  selector: 'current-selections',
  templateUrl: './current-selections.component.html',
})
export class CurrentSelectionsComponent implements OnInit {

  constructor(private el: ElementRef) { }

  chart_options = {
    type: 'QdtCurrentSelections',
    props: {
      height: '40px',
    },
  };

  ngOnInit() {

  }

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

Examples


← Back to All Components

You can’t perform that action at this time.