QdtSelectionToolbar: Create Toolbar with Current Selections
Display a toolbar with the current app selections.
prop
type
description
title
String
SELECTIONS
btnText
String
Clear All
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
) ;
< QdtComponent
type = "QdtSelectionToolbar"
props = { {
title : 'MY SELECTIONS' ,
btnText : 'Clear Selections' ,
} }
/>
// 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 >
← Back to All Components