javascript-console-share/src/main/amp/web/fme/components/jsconsole/javascript-console.js
/**
       * create the display options menu for dumps
       */
create the display options menu for dumps
create the display options menu for dumps
function ACJC_createDumpDisplayMenu(){
          if(!this.widgets.dumpDisplayMenu){
              var displayMenu = new YAHOO.widget.Menu('nowhere');
              displayMenu.addItem({text: "Hide equal values",value:"Differences"});
              displayMenu.addItem({text: "Hide different values",value:"highlightDifferences"});
              displayMenu.addItem({text: "Hide null values", value:"nullValues"});
              this.widgets.dumpDisplayMenu = new YAHOO.widget.Button({
                  type: "split",
                  label: "Display options",
                  name: "dumpDisplayButton",
                  menu: displayMenu,
                  container: "splitButtonContainer",
                  disabled: false
                });
              this.widgets.dumpDisplayMenu.on("appendTo", function () {
                  menu = this.getMenu();
                  menu.subscribe("click", function onMenuClick(sType, oArgs) {
                      var oMenuItem = oArgs[1];
                      if (oMenuItem) {
                          dt.showColumn(dt.getColumn(oMenuItem.value));
                          menu.removeItem(oMenuItem.index);
                          refreshButton();
                      }
                  });
              });
          }
      }
function ACJC_createDumpDisplayMenu ( ) { if ( ! this . widgets . dumpDisplayMenu ) { var displayMenu = new YAHOO . widget . Menu ( 'nowhere' ) ; displayMenu . addItem ( { text : "Hide equal values" , value : "Differences" } ) ; displayMenu . addItem ( { text : "Hide different values" , value : "highlightDifferences" } ) ; displayMenu . addItem ( { text : "Hide null values" , value : "nullValues" } ) ; this . widgets . dumpDisplayMenu = new YAHOO . widget . Button ( { type : "split" , label : "Display options" , name : "dumpDisplayButton" , menu : displayMenu , container : "splitButtonContainer" , disabled : false } ) ; this . widgets . dumpDisplayMenu . on ( "appendTo" , function ( ) { menu = this . getMenu ( ) ; menu . subscribe ( "click" , function onMenuClick ( sType , oArgs ) { var oMenuItem = oArgs [ 1 ] ; if ( oMenuItem ) { dt . showColumn ( dt . getColumn ( oMenuItem . value ) ) ; menu . removeItem ( oMenuItem . index ) ; refreshButton ( ) ; } } ) ; } ) ; } }
create the display options menu for dumps
create the display options menu for dumps