0.0.5 • Published 5 years ago

strapi-plugin-layout-editor v0.0.5

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

Strapi plugin layout-editor

Exposes another endpoint to get layout data

Note: this plugin is for the strapi backend only, it requires a seperate ui to work correctly.

http://localhost:1337/layout-editor/:model/:modelId/layouts

It will return with an object of

const model = {
    id: string;
    model: string;
    modelId: string;
    layoutJson: LayoutJson;
}

where your LayoutJson interface, at a minimum, has these fields,

interface LayoutJson {
  i: string;
  x: number;
  y: number;
  w: number;
  h: number;
}