Functiondijit._place

dojo.require("dijit");
defined in dijit/_base/place.js

Given a list of spots to put node, put it at the first spot where it fits, of if it doesn't fit anywhere then the place with the least overflow

Usage

function (/*DomNode*/ node, /*Array*/ choices, /*Function*/ layoutNode) (view source)
parametertypedescription
nodeDomNode 
choicesArrayof elements like: {corner: 'TL', pos: {x: 10, y: 20} } Above example says to put the top-left corner of the node at (10,20)
layoutNodeFunction(node aroundNodeCorner, nodeCorner) for things like tooltip, they are displayed differently (and have different dimensions) based on their orientation relative to the parent. This adjusts the popup based on orientation.