JS API That Can Be Called on the Mobile Terminal
APP
1. Web Event
Web Event | Pagination Preview | Data Entry Preview |
---|---|---|
Loading Start | √ | √ |
Loading End | √ | √ |
Before Data Entry | √ | |
After Data Entry | √ | |
Data Entry Successful | √ | |
Data Entry Failed | √ |
2. Internal JS API of the Report
Internal JS API of the Report | Cell | Chart |
---|---|---|
Hyperlink JS API | √ | √ |
Note: The internal JS APIs of the chart can realize hyperlinks; however, when the chart is used as a component of a dashboard, the JS click events added to this component are not supported.
3. Widget Event
Widget Event | Parameter Widget | Data Entry Widget | Dashboard Widget |
---|---|---|---|
After Initialization | √ | √ | √ |
Before Editing | |||
After Editing | √ | √ | |
Edit End | √ | √ | |
Click | √ | √ | √ |
Value Change | |||
Node Generation | |||
State Change | √ | √ | √ |
After Uploading |
Note: 1. The widgets of the dashboard refer to the widgets in the body of the dashboard, which does not include those on the parameter panel.
2. The mobile terminal only supports the initialization of widgets on the parameter page, but does not support the initialization of the parameter panel.
3. Currently, the component does not support the click event.
4. The label widgets on the mobile terminal do not support events.
H5
1. Web Event
Web Event | Pagination Preview |
---|---|
Loading Start | √ |
Loading End | √ |
2. Widget Event
Widget Event | Parameter Widget | Dashboard Widget |
---|---|---|
After Initialization | √ | √ |
Before Editing | ||
After Editing | √ | |
Edit End | √ | |
Click | √ | √ |
Value Change | ||
Node Generation | ||
State Change | √ | √ |
After Uploading |
Note: 1. The widgets of the dashboard refer to the widgets in the body of the dashboard, which does not include those on the parameter panel.
2. The mobile terminal only supports the initialization of widgets on the parameter page, but does not support the initialization of the parameter panel.
3. The component does not support the click event.
4. The label widgets on the mobile terminal do not support events.
JS API Unique to the Mobile Terminal
Shared JS API of the DataAnalyst App and the H5 Terminal
Classification | Method Name/Attribute | Introduction |
FS | FS.tabPane.closeActiveTab | This API is used to close the current page and jump to the directory page. |
FR.logoutApp | This API is used to log out the APP. | |
FS.tabPane.addItem | This API is used to open a new page. | |
FR | FR.location | This API is used to obtain the longitude and latitude of a position. |
FR.mobilePopup | This API is used to open a pop-up dialog. | |
FR.closeMobilePopup | This API is used to close a pop-up dialog. | |
/ | toggleCollapsed | This API is used to set the expansion/collapse component. |
/ | _g().jumpToMark("markName") | This API is used to jump to specified locations by using hyperlinks. Note: markName can be the name of a widget, table component, chart block, or Tab-tabpane. |
/ | this.focusCode(); | This API is used to place the cursor automatically on the text widget. |
JS API Unique to the DataAnalyst APP
Method Name/Attribute | Introduction |
---|---|
FR.Mobile.getDeviceInfo | This API is used to obtain device information. |
The DtaAnalyst APP 11.0.91 and later versions with the FVS plugin of V2.6.0 and later versions support the following APIs, which are only available on the App.
Method Name/Attribute | Introduction |
FS.tabPane.closeActiveTab | This API is used to close the current page and jump to the directory page. |
FS.tabPane.addItem | This API is used to open a new page. |
duchamp.logoutApp | This API is used to log out the APP. |
duchamp.location | This API is used to obtain the longitude and latitude of a position. |
duchamp.getDeviceInfo | This API is used to obtain device information. |
Other Mobile APIs
For details, see JS API Summary.