I have a YUI DataTable with various columns representing a list of users. I would like to add a column containing a button in each row with a specific label (say, "access to access") and which calls some function when pressed. Is it possible?
I tried to check the YUI documentation, but as far as I can see, they do not allow you to change the shortcut of the button itself in the way I mention here. Any clues?
In the column definitions, you must specify the ala formatter
var myCols = [ ... /* your other cols */ { key: 'foo', formatter: function (cell, rec, col, data) { cell.innerHTML = '<button type="button">'+data+'</button>'; } } ];
, .
Source: https://habr.com/ru/post/1714252/More articles:Ошибка PInvoke при сортировке структуры со строкой в ней - c++iPhone viewDidAppear stops firing after loading / rejecting a modal view - objective-cConnect R from Excel - DCOM? R add to Excel? - rusing() и располагать с несколькими обернутыми потоками - c#Combining multiple images into a single image for subsequent painting with alpha blending - javaAccess javascript variables from a call zone - javascriptHaskell and Quadratics - mathIs it a good practice to make multiple separate database calls from an ASP.NET MVC web application? - asp.net-mvcXSLT: how can I call a template when there is no input file? - xsltHow can I add a field dynamically to a Java class using Groovy? - ruby | fooobar.comAll Articles