Add a button to a cell
I'm trying to figure out how to have a column that is a button type.
any suggestions anyone?
any suggestions anyone?
David D.
May 15,
var image = new Active.HTML.IMG;
image.setAttribute("SRC","./images/d1.jpg");
image.setStyle('width', 75);
image.setStyle('height','20');
image.setEvent("onmouseover", "this.src='./images/d2.jpg'");
image.setEvent("onmouseout", "this.src='./images/d1.jpg'");
image.setEvent("onclick",function (src){ alert("downloading file"); });
obj.setColumnTemplate(image,1);
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021