Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82266

insert dojo button inside a table cell

$
0
0
Hello,

i want to insert a dojo button inside a datatable cell.


Option#1, insert a funcion that will call another function when ready (not working atm):

{ "fnRender": function ( oObj, sVal ) {



return "<div id='lojas-dns-$$id'><script>( function(x){ alert(x) })($$id);</script></div>".render({id: sVal}); }, "aTargets": [ 5]
},

Option#2, insert a dojo combobuttom, somehow like this (not working atm):
{ "fnRender": function ( oObj, sVal ) {

var menu = new Menu({ style: "display: block;"});
var menuItem1 = new MenuItem({
label: "Yahoo",
onClick: function(){ alert('hi'); }
});
menu.addChild(menuItem1);

var menuItem2 = new MenuItem({
label: "Google",
onClick: function(){ alert('ho'); }
});
menu.addChild(menuItem2);

var button = new ComboButton({
label: "get all mail",
dropDown: menu
});
}, "aTargets": [ 5]
},
button.placeAt(lojas-dns-$$id');

Viewing all articles
Browse latest Browse all 82266

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>