Skip to content

adamayres/angular-quilt

Repository files navigation

angular-quilt

An Angular directive for page layout and widget management.

Install

Download

bower install angular-quilt --save

Include Script

<script src="/bower_components/angular-quilt/dist/angular-quilt.js">

Add module dependency

angular.module('myApp', ['ngQuilt']);

Use directive

<ng:quilt quilt-url="/quilts/page.quilt.json"></ng:quilt>

Example quilt

{
  "rows": [
    {
      "columns": [
        {
          "width": 12,
          "components": [
            {
              "id": "test-content",
              "parameters": {
                "content": "Header"
              }
            }
          ]
        }
      ]
    },
    {
      "columns": [
        {
          "width": 8,
          "components": [
            {
              "id": "test-content",
              "parameters": {
                "content": "Main Content"
              }
            }
          ]
        }, {
          "width": 4,
          "components": [
            {
              "id": "test-content",
              "parameters": {
                "content": "Side Content"
              }
            }
          ]
        }
      ]
    },
    {
      "columns": [
        {
          "width": 12,
          "components": [
            {
              "id": "test-content",
              "parameters": {
                "content": "Footer"
              }
            }
          ]
        }
      ]
    }
  ]
}

API Doc

TODO

About

An Angular directive for page layout and widget management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published