code: function addActionBtn( id, res ) {
    log( 'addActionBtn', "start");
    var html = "";
    for( var x = 0; x < res.actions.length; x++ ) {
      var action = res.actions[x];
      var name = "help";
      var txt = "?";
      var icon = "ui-iocon-help";
      var jscall = "help";
      if ( action.actionName == "fullWidth" ) {
        name = "fullWidth";
        txt = "Full width";
        icon = "ui-icon-arrow-2-e-w";
        jscall = "resViewFullWidth( \""+id+"\" );";
        html += "<button id=\""+id+name+"Bt\">"+ $.i18n( txt )+"</button>";
        html += "<script>  $(function() { $( \"#"+id+name+"Bt\" ).button( { icons:{primary: \""+icon+"\"}, text: false } ).click( "+
          "function() { "+jscall+" }); }); </script>";    
  
      } else if ( action.actionName == "fullScreen" ) {
        name = "fullScreen";
        txt = "Full screen";
        icon = "ui-icon-arrow-4-diag";
        jscall = "resViewFullScreen( \""+id+"\" );";
        html += "<button id=\""+id+name+"Bt\">"+ $.i18n( txt )+"</button>";
        html += "<script>  $(function() { $( \"#"+id+name+"Bt\" ).button( { icons:{primary: \""+icon+"\"}, text: false } ).click( "+
          "function() { "+jscall+" }); }); </script>";    
      } 
  
      // hook for generating action button code
      log( 'addActionBtn', "addActionBtn "+action.type );
      hook = getHookMethod( "addActionBtn", action.type );
      if ( hook != "" ) {
        log( 'addActionBtn', hook+"( "+action.actionName+" )");
        html += eval( hook+"( id, action.actionName, res.resourceURL, action.param )" );
        dlgMap.push( [ id, action.actionName, res.resourceURL, action.type, action.param ] );
      }
    }
    return html;
  }
docs: =====================================================================================================