Successfully!

Error!

You are viewing 10.0 help doc. More details are displayed in the latest help doc

Drop-down Box Widget Exclusive

setName4Empty

MethodsetName4Empty(name)Modify the default text "Select none" when the drop-down box widget is pulled down
 Parametername: stringnew text, string
Return valuevoid
    Example

Example 1: If the obtained drop-down box widget object is defined as combo, change the default text of the drop-down box to "Select all"

combo.setName4Empty("Select all");

Example 2: In a general report, change the default text of the drop-down box comboBox0 in the parameter pane to "Select all"

_g().getParameterContainer().getWidgetByName("comboBox0").setName4Empty(
"Select all");

Example 3: Dashboard, change the default text of the drop-down box comboBox0 in the body to "Select all"

_g().getWidgetByName("comboBox0").setName4Empty("Select all");

Note: After adding an event, after an error is reported because the report block object is not completely created, you can add a delay function to delay execution, such as:

setTimeout(function(){
   _g().getParameterContainer().getWidgetByName("comboBox0").setName4Empty(
"Select all");
}, 500);

Application

example

Change the default text of the drop-down box to "select all":

Click to download the template: 

Modify the default select all in the drop-down box.cpt1.png

MobileNot support mobile terminal


Attachment List


Theme: 11.0 New Features
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback