Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for Best Practice: Nested GridStack Implementation with Vue 3 #2640

Open
baiyonghong1989 opened this issue Mar 27, 2024 · 0 comments
Labels

Comments

@baiyonghong1989
Copy link

Subject of the issue

there is a need for a best practice guideline for implementing a nested GridStack layout with Vue 3.

Your environment

  • version of gridstack.js -8.x
  • which browser/OS: chrome

Steps to reproduce

i have a data like this:

const demoData = [
  {
    id: "22",
    x: "3",
    y: "3",
    w: 2,
    h: 2,
    widgetData: {
      type: "BusinessComponentA",
    },
  },
  {
    id: "11",
    x: "0",
    y: "0",
    w: 2,
    h: 2,
    children: [
      {
        x: "3",
        y: "3",
        w: 2,
        h: 2,
        widgetData: {
          type: "BusinessComponentB",
        },
      },
    ],
  },
];

based on the data,Expected Rendering Result:

  • One grid item rendering .
  • Another grid item rendering a nested GridStack, with its content being .

Expected behavior

how show i organize the code,tks

@adumesny adumesny added the Vue label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants