I. Overview
1. Version
App version | HTML5 version |
---|---|
App9.3 and later & App10.0 | 6.0 and later |
2. JS interface
pass through setTabVisible(tabName String, isVisible Boolean)Can hide part of Tab title
Parameter | type | Instruction |
---|---|---|
tabName | String | Required, the name of the Tab control, such as Tab0 |
isVisible | Boolean | Required, whether Tab is visible, true visible/false hidden |
II. Examples
1. Template settings
Create a new decision report, add a tab block, add three Tab controls, and then add a button below, as shown below:
Add a click event to the button, as shown in the following figure:
Code show as below:
this.options.form.getWidgetByName("tabpane0").setTabVisible("Tab1",false)
2. Preview of mobile effects
Add the template to the decision-making system, and access the template on the mobile terminal. The preview effect on the App and HTML5 terminal is as follows:
III. Template
For the completed template, see: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\JS\setTabVisible.frm
Completed template: