Fast way of making table with buttons for Meteor app


#1

Hi, I want to make a 3@3 table with buttons in each cell and assigning an action for each button. Can someone point me the simplest and fastest way to make this in a Meteor app? I only need the table, templates and other functionality of the app is done. I need the table and its helpers and event function for the table.

Thanks,
K.


#2

Well, React, Blaze, Vue, pure HTML, …?


#3

Yes. I have done something like this so far I am not sure this is the best practice though.

<table id="playback-table">
	             <tr>
                   <td><input type=submit id="cell1" value="click me" onClick="play?"></td>
                   <td><input type=submit id="cell2" value="click me" onClick="play?"> </td>
                   <td><input type=submit id="cell3" value="click me" onClick="play?"></td>
	             </tr>
	             <tr>
                   <td><input type=submit id="cell1.1" value="click me" onClick="play?"></td>
                   <td><input type=submit id="cell1.2" value="click me" onClick="play?"></td>
                   <td><input type=submit id="cell1.3" value="click me" onClick="play?"></td>
	             </tr>
           </table>
 "click [type='submit']": ( (event, instance) => {
            console.log(event);
        })