Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: changed portlet names to be letters for clarity

...

No Format
var layout = {
    id:"t2",
    columns:[
        { id:"c1", children:["portlet1portletA","portlet2portletB","portlet3portletC","portlet4portletD"]},
        { id:"c2", children:["portlet5portletE","portlet6portletF"]   },
        { id:"c3", children:["portlet7portletG","portlet8portletH","portlet9portletI"]}
    ]
}

The following data structure will be included in the init and describes for each orderable element where it can be moved. Each row in the table represents the permissions for a single portlet being moved. Each column in the row indicates the drop permissions of the moved portlet for the drop targets (as described by the diagram above). The boolean value indicates whether or not the portlet being moved can be dropped on the given drop target.

...

  • dropTargets[5][2] = 0, which means that portlet 6 F can not be dropped between portlets 2 B and 3 C (because it is not high enough precedence to be placed higher than portlet 3C).
  • dropTargets[5][3] = 1, which means that portlet 6 F can be dropped between portlets 3 C and 4D.
No Format
demo.portal.dropTargetPerms = [
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],   // portlet 1A
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],   // portlet 2B
    [0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1],   // portlet 3C
    [0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1],   // portlet 4D
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],   // portlet 5E
    [0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1],   // portlet 6F
    [0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1],   // portlet 7G
    [0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1],   // portlet 8H
    [0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1]    // portlet 9I
];