Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/lib/onyx/source/Grabber.js
blob: 0fd74f5d4361e3a74a49452326cc20c24b5549b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
	A control styled to indicate that an object can be grabbed and moved.  It
	should only be used in this limited context--to indicate that dragging the
	object will result in movement.

		{kind: "onyx.Toolbar", components: [
			{kind: "onyx.Grabber", ondragstart: "grabberDragstart",
				ondrag: "grabberDrag", ondragfinish: "grabberDragFinish"},
			{kind: "onyx.Button", content: "More stuff"}
		]}

	When using a Grabber inside a Fittable control, be sure to set "noStretch: true"
	on the Fittable or else give it an explicit height.  Otherwise, the Grabber
	may not be visible.
*/
enyo.kind({
	name: "onyx.Grabber",
	classes: "onyx-grabber"
});