Note: The interface on this page applies to absolute canvas blocks, report blocks, tab blocks, chart blocks, and widgets in the body.
invisible
Method | invisible() | Set component invisible |
---|---|---|
Parameter | - | - |
Return value | void | |
Example | Example 1: If the obtained component is defined as widget , set it to be invisible Example 2: Get the report block whose component name is "report0" in the dashboard and hide it
Example 3: Get the chart block with the chart name "chart0" in the dashboard and hide it _g().getWidgetByName('chart0').invisible(); | |
Application example | Customize a button "Hide Standard Earning Summary Form", and hide the "Standard Earnings Summary" form when the button is clicked: Click to download the template: | |
Mobile | Support mobile terminal |
visible
Method | visible() | Set component visible |
---|---|---|
Parameter | - | - |
Return value | void | |
Example | Example 1: If the obtained component is defined as widget , set it to be visible Example 2: Get the report block whose component name is "report0" in the dashboard and show it
Example 3: Get the chart block with the chart name "chart0" in the dashboard and show it _g().getWidgetByName('chart0').visible(); | |
Application example | Customize a button "Show Standard Earning Summary Form", and show the "Standard Earnings Summary" form when the button is clicked: Click to download the template: | |
Mobile | Support mobile terminal |
setVisible
Method | setVisible(visibility) | Set component visible/invisible |
---|---|---|
Parameter | visibility: boolean | Whether component is visible,boolean
|
Return value | void | |
Example | Example 1: If the obtained component is defined as widget , set it to be invisible
Example 2: Get the report block whose component name is "report0" in the dashboard and hide it
Example 3: Get the chart block with the chart name "chart0" in the dashboard and hide it _g().getWidgetByName('chart0').setVisible(false); | |
Application example | After hiding the Standard Earnings Summary table, click the button to make it appear: Click to download the template: | |
Mobile | Support mobile terminal |
isVisible
Method | isVisible() | Return whether the component is visible |
---|---|---|
Parameter | - | - |
Return value | boolean | Whether component is visible,boolean
|
Example | Example 1: If the obtained component is defined as widget , return whether it is visible or not Example 2: Get the report block whose component name is "report0" in the dashboard, and return whether it is visible or not
Example 3: Get the chart block with the chart name "chart0" in the dashboard, and return whether it is visible or not _g().getWidgetByName('chart0').isVisible(); | |
Application example | Click the button to see if the Earnings Summary Table is visible: Click to download the template: | |
Mobile | Support mobile terminal |