This document is applicable to users who have installed the FineVis Data Visualization plugin to learn plugin functions.
Version
Report Server Version | Plugin Version | Functional Change |
---|---|---|
11.0.9 | V1.9.1 | The FVS Tab component supported the getShowIndex() and showCardByIndex() interfaces. |
11.0.9 | V1.10.1 | Supported the setTabVisible interface. |
getShowIndex
Method | getShowIndex() | Get the index of the currently displayed tab page in the Tab component. |
---|---|---|
Parameter | - | - |
Returned Value | number | The location index (number) of the current tab page of the Tab component, starting from 0. |
Example | Example One: Get the index of the currently displayed tab page in the Tab1 component in an FVS template. duchamp.getWidgetByName('Tab1').getShowIndex(); Example Two: Get the index of the currently displayed tab page in the Tab1 component in an FVS template and display a pop-up message.
| |
Application Example | Get the index of the currently displayed tab page in the Tab1 component in an FVS template and display a pop-up message. You can download the example template. Get the index of the current page of the Tab component.fvs | |
Mobile Terminal | It is supported on mobile terminals. |
showCardByIndex
Method | showCardByIndex(index) | Display the n-th tab page in the Tab component. |
---|---|---|
Parameter | index: number | The index of the displayed tab page, starting from 0. |
Returned Value | - | - |
Example | Example One: Display the 2nd tab page (with an index of 1) of the Tab1 component in an FVS template. duchamp.getWidgetByName('Tab1').showCardByIndex(1) Example Two: Enable automatic carousel for the Tab component by clicking the title component, with an interval of 3 seconds.
Example Three: Use a drop-down box widget to switch between tab pages.
| |
Application Example | Change the displayed tab pages in the Tab1 component in an FVS template through a title component. You can download the example template.Use JS to switch between Tab pages.fvs | |
Mobile Terminal | It is supported on mobile terminals. |
setTabVisible
Method | setTabVisible(name, visibility) | Show/Hide a tab page. |
---|---|---|
Parameter | name: string visibility: boolean | The index of the displayed tab page, starting from 0. |
Returned Value | - | string: tab page name (string) visibility: whether the tab page is displayed (boolean data type)
|
Example | Example: Hide the Tab1 tab page of the Tab1_Page1 component in an FVS template. duchamp.getWidgetByName( 'Tab1_Page1' ).setTabVisible( "Tab1" , false ); | |
Application Example | Customize buttons to hide/show the Tab1 tab page of the Tab1_Page1 component. You can download the example template.Use JS to show:hide Tab pages.fvs | |
Mobile Terminal | It is supported on mobile terminals. |