code: function pongHistogram_AddActionBtn( id, modalName, resourceURL, paramObj ) {
  	log( "pongHistogram", "modalFormAddActionBtn "+id);
  	//var action = res.actions[x];
  	var html = "";
  	log( "pongHistogram", "Std Config Dlg:  " + modalName );
  	var icon = "ui-icon-help"; // TODO change
  	var jscall = '$( "#'+id+modalName+'Dialog" ).dialog( "open" );';
  	var width  = "650"; if ( paramObj!= null && paramObj.width  != null ) { width  = paramObj.widht; }
  	var height = "500"; if ( paramObj!= null && paramObj.height != null ) { height = paramObj.height; }
  	html += '<div id="'+id+modalName+'Dialog">'+ resourceURL +" "+ modalName+"</div>";
  	html += "<script> $(function() { $(  "+
  		"\"#"+id+modalName+"Dialog\" ).dialog( { autoOpen: false, height: "+height+", width: "+width+" , modal: true, "+ // TODO: Refresh resource
  		" buttons: { \"OK\": function() {  $( this ).dialog( \"close\" );  } } }); "+
  		"});</script>";			
  	html += '<button id="'+id+modalName+'Bt">'+modalName+'</button>';
  	html += '<script>  $(function() { $( "#'+id+modalName+'Bt" ).button( { icons:{primary: "'+icon+'"}, text: false } ).click( '+
  		"function() { "+jscall+" }); }); </script>";		
  	return html;
  }
docs: ======= Code for "addActionBtn" hook ================================================