rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
972 stars 364 forks source link

How can I add custom button into the actions template? #341

Open liushoukai opened 7 years ago

liushoukai commented 7 years ago

Is there any way to add custom buttons into the actions template? I hope to put the btn-search button into the {{css.actions}} parts.

templates: {
    header:
    "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\">" +
    "<div class=\"row\">" +
    "<div class=\"col-sm-12 actionBar\">" +
    "<!--Your Button goes here-->" +
    "<div class=\"btn-group inline pull-right\">" +
    "<div><button type=\"button\" id=\"btn-search\" class=\"btn btn-info\">Sarch</button></div>" +
    "</div>" +
    "<div class=\"{{css.actions}}\"></div>" +
    "</div>" +
    "</div>" +
    "</div>" +
    "</div>"
}
stvowi commented 6 years ago

try out http://gijgo.com/grid/demos/jquery-grid-bootstrap