Skip to content

Instantly share code, notes, and snippets.

@wojciech-bilicki
Last active October 29, 2017 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wojciech-bilicki/bcbcfbb55f65111c6f85c157969141f9 to your computer and use it in GitHub Desktop.
Save wojciech-bilicki/bcbcfbb55f65111c6f85c157969141f9 to your computer and use it in GitHub Desktop.
ticketList createActionsButton with styles
createActionButtons: function(cell) {
var payButton = document.createElement('button');
payButton.textContent = 'PAY';
payButton.classList.add('small-button');
payButton.classList.add('pay-button');
var deleteButton = document.createElement('button');
deleteButton.textContent = 'DELETE';
deleteButton.classList.add('small-button');
deleteButton.classList.add('delete-button');
cell.appendChild(payButton);
cell.appendChild(deleteButton);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment