Skip to content

Maintain node level #84

Open
Open
@daveKoala

Description

@daveKoala

Hi @phphe
i have a structure no more than 2 levels deep ( Module and Activities ).
I need to keep any Module at the root level and be able to reorder them.
Activities can be reordered and moved between Modules - but can not be promoted to root level with Modules

Screen shots:
This is the structure i am looking to keep
good

This is wrong, Modules and Activities sharing node levels
bad

My data structure is:

 journey: [
      { text: "module 1" },
      {
        text: "module 2",
        children: [
          { text: "activity 1", droppable: false },
          {
            text: "activity 2",
            droppable: false
          },
          {
            text: "activity 3",
            droppable: false
          }
        ]
      },
      { text: "module 3", draggable: false },
      {
        text: "module 4",
        children: [
          { text: "activity 4", droppable: false },
          {
            text: "activity 5",
            droppable: false
          },
          {
            text: "activity 6",
            droppable: false
          }
        ]
      }
    ]

Many thanks in advance

DC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions