3.2.0

Set text to the corner of the grid

Hello, how can I put text in the corner of the grid?
Raimon
December 26,
What you mean? Can u explain a little more?
Paulo Cesar (PC from Brazil )
December 28,
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");

HTH
Carlos
December 28,

This topic is archived.

See also:


Back to support forum