public/javascripts/yui/datatable/datatable.js
function(el, oRecord, oColumn, oData) {
        var sValue = lang.isValue(oData) ? oData : "Click";
        //TODO: support YAHOO.widget.Button
        //if(YAHOO.widget.Button) {

        //}
        //else {
            el.innerHTML = "<button type=\"button\" class=\""+
                    DT.CLASS_BUTTON + "\">" + sValue + "</button>";
        //}
    }
function(el, oRecord, oColumn, oData) {
        var sValue = lang.isValue(oData) ? oData : "Click";
        //TODO: support YAHOO.widget.Button
        //if(YAHOO.widget.Button) {

        //}
        //else {
            el.innerHTML = "<button type=\"button\" class=\""+
                    DT.CLASS_BUTTON + "\">" + sValue + "</button>";
        //}
    }
function ( el , oRecord , oColumn , oData ) { var sValue = lang . isValue ( oData ) ? oData : "Click" ; //TODO: support YAHOO.widget.Button //if(YAHOO.widget.Button) { //} //else { el . innerHTML = "<button type=\"button\" class=\"" + DT . CLASS_BUTTON + "\">" + sValue + "</button>" ; //} }
Formats a BUTTON element.

@method DataTable.formatButton
@param el {HTMLElement} The element to format with markup.
@param oRecord {YAHOO.widget.Record} Record instance.
@param oColumn {YAHOO.widget.Column} Column instance.
@param oData {Object | Boolean} Data value for the cell. By default, the value
is what gets written to the BUTTON.
@static
Formats a BUTTON element .