draggable property seems backwards to me

Description

The documentation sounds backwards to what I would expect for enyo.Panels.draggable
"Indicates whether the user may drag between panels."

In practice I have found that false means I can drag and true means I cannot. This seems backwards to me since draggable means to me "able to drag" and "true" would tell me yes, you are able to drag. Yet it works the reverse way. As you can see in the example you can drag from panel 1 to 2 and back to 1 (which have draggable set to false) but dragging to panel 3 (which draggable is set to true) makes you stuck and can't drag anymore.

Either fix the code or make the documentation clear such as: "draggable:false means you can drag between panels, draggable:true means you cannot drag between panels"

Activity

Show:
Alfred Morgan
June 8, 2015, 6:11 PM

DougReeder cleared up what draggable means. I didn't know draggable was referring to the children and not itself. I was putting panels inside panels and expecting the draggable to act on itself.
http://jsfiddle.net/q3eLvnyw/

I think the docs should read something like:
"Indicates whether the user may drag between subpanels."
"Indicates whether the user may drag between components."
"Indicates whether the user may drag between subcontrols."

something that indicates "panels" meaning the children and not its self "Panels"

Alfred Morgan
June 8, 2015, 7:04 PM

better:
"Indicates whether the user may drag between its panels."

Blake Stephens
June 8, 2015, 9:25 PM

I think that's a fine replacement string.

Maybe:

Indicates whether the user may drag between its own panels.

Alfred Morgan
June 8, 2015, 9:35 PM

Lis Hammel
June 18, 2015, 10:18 PM

Docs have been updated. Thanks !

Assignee

Alfred Morgan

Reporter

Alfred Morgan

Labels

None

External issue ID

None

Tango Test Run Elements

None

Old Issue Key

None

Components

Affects versions

Priority

None
Configure