Skip to content

Latest commit

 

History

History
90 lines (63 loc) · 1.77 KB

QdtCurrentSelections.md

File metadata and controls

90 lines (63 loc) · 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