show method
This API is reliable and breaking changes are unlikely.
show(element)
Shows the visualization in an HTML element.
Version history
Version state | Details |
---|---|
Introduced | 2.2 |
Updated | 3.0 |
Disclaimer
The element that is provided as a parameter to the show method must have CSS property position set to relative and must not have any padding.
If these rules are not followed, the visualization object may not calculate its width and height correctly and you may not be able to scroll and navigate after toggling data view.
Proposed action
Wrap the element with another element. The wrapper can then be styled without any limitations.
Parameters
element
Type: Element | String
Optional. HTML element or HTML element ID.
options
Type: Object
Optional.
Parameter introduced in version 3.0.
Properties:
Name | Type | Description |
---|---|---|
noInteraction | Boolean | Set to true if you want to disable all interaction, including selections, in the visualization. |
noSelections | Boolean | Set to true if you want to disable selections in the visualization. |
Example
var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
app.visualization.get('xGhjKl').then(function(vis){
vis.show("QV01");
});