Successfully!

Error!

[General] JS Hidden Part Tab

  • Last update:  2021-12-24
  • 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

      Parametertype    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:

    1.png

    Add a click event to the button, as shown in the following figure:

    2.png

    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:

    3.gif

    III. Template

    For the completed template, see: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\JS\setTabVisible.frm

    Completed template: 

    setTabVisible.frm

    Attachment List


    Theme: Fine Mobile
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback