:: Forum >>
Set text to the corner of the grid
Hello, how can I put text in the corner of the grid?
Raimon
Wednesday, December 26, 2007
What you mean? Can u explain a little more?
Paulo Cesar (PC from Brazil )
Friday, December 28, 2007
To write some text and set an event for top-left corner in version 1.X, just try :
obj.getLayoutTemplate().setContent("corner/box/item", "Click Me");
var Mycorner = obj.getLayoutTemplate().getContent("corner");
Mycorner.setEvent("onmousedown", mousedownFunction);
function mousedownFunction(e) {alert('Corner Clicked'); }
For do it in version 2.X use:
obj.setTopText("Click Me");
HTH
Carlos
Friday, December 28, 2007
This topic is archived.
Back to support forum
Forum search