:: Forum >>

Set text to the corner of the grid

Hello, how can I put text in the corner of the grid?
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 :
//text of top left corner
obj.getLayoutTemplate().setContent("corner/box/item", "Click Me");
//EVENT of top left corner
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");
Friday, December 28, 2007

This topic is archived.

Back to support forum

Forum search