How to access HTML button once created?
Hello,
I know how to add a button at the top of the grid with following code (found in the documentation):
var button = new Active.HTML.BUTTON;
button.setContent("html", "Delete");
button.setEvent("onclick", DeleteRow);
button.setClass("grid","buttonDelete");
document.write(button);
But I don't know how to modify this button when an action is fired on the grid. For example, I would like to modify the button's style when the user clicks a cell.
Thanks for your help !
I know how to add a button at the top of the grid with following code (found in the documentation):
var button = new Active.HTML.BUTTON;
button.setContent("html", "Delete");
button.setEvent("onclick", DeleteRow);
button.setClass("grid","buttonDelete");
document.write(button);
But I don't know how to modify this button when an action is fired on the grid. For example, I would like to modify the button's style when the user clicks a cell.
Thanks for your help !
Allan
March 25,