{"id":21292032,"url":"https://github.com/johnnythetank/angular-bricklayer","last_synced_at":"2025-07-11T16:31:15.311Z","repository":{"id":57178114,"uuid":"56867961","full_name":"JohnnyTheTank/angular-bricklayer","owner":"JohnnyTheTank","description":"AngularJS module for ademilter's bricklayer, a lightweight \u0026 independent cascading grid layout library","archived":false,"fork":false,"pushed_at":"2017-09-13T13:59:07.000Z","size":30,"stargazers_count":43,"open_issues_count":4,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T04:51:39.643Z","etag":null,"topics":["angular","angular-grid","bricklayer","grid","layout","mansonry"],"latest_commit_sha":null,"homepage":"http://plnkr.co/edit/mo3G36","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JohnnyTheTank.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-22T16:01:23.000Z","updated_at":"2022-07-15T19:58:52.000Z","dependencies_parsed_at":"2022-09-14T02:01:13.074Z","dependency_job_id":null,"html_url":"https://github.com/JohnnyTheTank/angular-bricklayer","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-bricklayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-bricklayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-bricklayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2Fangular-bricklayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnnyTheTank","download_url":"https://codeload.github.com/JohnnyTheTank/angular-bricklayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225741250,"owners_count":17516895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-grid","bricklayer","grid","layout","mansonry"],"created_at":"2024-11-21T13:47:15.887Z","updated_at":"2024-11-21T13:47:16.454Z","avatar_url":"https://github.com/JohnnyTheTank.png","language":"JavaScript","readme":"# angular-bricklayer\nAngularJS module for [ademilter's bricklayer](https://github.com/ademilter/bricklayer), a lightweight \u0026 independent cascading grid layout library\n\n[![npm version](https://badge.fury.io/js/angular-bricklayer.svg)](https://badge.fury.io/js/angular-bricklayer)\n[![Bower version](https://badge.fury.io/bo/angular-bricklayer.svg)](https://badge.fury.io/bo/angular-bricklayer)\n\n## Demos\n- [Simple demo on GitHub](https://rawgit.com/JohnnyTheTank/angular-bricklayer/master/demo/index.html)\n- [Simple demo on Plnkr](http://plnkr.co/edit/mo3G36) \n- [Demo with images from flickr](https://rawgit.com/JohnnyTheTank/apiNG-design-bricklayer/master/demo/index.html) (made with [apiNG](https://github.com/JohnnyTheTank/apiNG))\n\n[![Image](https://rawgit.com/ademilter/bricklayer/master/assets/screenshot.gif)](http://ademilter.github.io/bricklayer)\n\n## Installation\n\n1. Install via either [bower](http://bower.io/), [npm](https://www.npmjs.com/) or downloaded files:\n    1. via bower: `bower install --save angular-bricklayer`\n    2. via npm: `npm install --save angular-bricklayer`\n    3. via CDN (jsDelivr)\n    4. via [downloaded files](https://github.com/JohnnyTheTank/angular-bricklayer/zipball/master)\n\n2. Include dependencies and angular-bricklayer in your HTML.\n    1. When using bower\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"bower_components/bricklayer/dist/bricklayer.min.css\"\u003e\n    \u003cscript src=\"bower_components/bricklayer/dist/bricklayer.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"bower_components/angular-bricklayer/dist/angular-bricklayer.min.js\"\u003e\u003c/script\u003e\n    ```\n    2. When using npm\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"node_modules/bricklayer/dist/bricklayer.min.css\"\u003e\n    \u003cscript src=\"node_modules/bricklayer/dist/bricklayer.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"node_modules/angular-bricklayer/dist/angular-bricklayer.min.js\"\u003e\u003c/script\u003e\n    ```\n    3. When using CDN\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/bricklayer/0.4.3/bricklayer.min.css\"\u003e\n    \u003cscript src=\"//cdnjs.cloudflare.com/ajax/libs/bricklayer/0.4.3/bricklayer.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"//cdn.jsdelivr.net/npm/angular-bricklayer@1.1.0/dist/angular-bricklayer.min.js\"\u003e\u003c/script\u003e\n    ```\n    4. When using downloaded files\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"YOUR_PATH/bricklayer.min.css\"\u003e\n    \u003cscript src=\"YOUR_PATH/bricklayer.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"YOUR_PATH/angular-bricklayer.min.js\"\u003e\u003c/script\u003e\n    ```\n\n3. Add **`jtt_bricklayer`** to your application's module dependencies, like this:\n    ```javascript\n    angular.module('app', ['jtt_bricklayer']);\n    ```\n\n## Usage\nCreate a simple list and set the css class **`bricklayer`** like this\n\n```html\n\u003cdiv class=\"bricklayer\" ng-cloak\u003e\n    \u003cdiv\u003eYour item\u003c/div\u003e\n    \u003cdiv\u003eYour another item\u003c/div\u003e\n    \u003cdiv\u003eYour another but long item\u003c/div\u003e\n    \u003cdiv\u003eYour another but very short item\u003c/div\u003e\n    \u003cdiv\u003eYour one more item\u003c/div\u003e\n    \u003cdiv\u003eYour smallest item\u003c/div\u003e\n\u003c/div\u003e\n```\n\nDefine **bricklayer column size**:\n\n```css\n@media screen and (min-width: 1200px) {\n  .bricklayer-column-sizer {\n    /* divide by 3. */\n    width: 33.3%;\n  }\n}\n\n@media screen and (min-width: 768px) {\n  .bricklayer-column-sizer {\n    /* divide by 2. */\n    width: 50%;\n  }\n}\n```\n\n## Add bricks dynamically\n\nUse `bricklayer-append` or `bricklayer-prepend` as attribute, class or element name inside of your `bricklayer` instance\n\n```html\n\u003cdiv class=\"bricklayer\" ng-cloak\u003e\n    \u003c!-- append --\u003e\n    \u003cdiv bricklayer-append ng-repeat=\"item in appendData\" ng-cloak\u003e\u003c/div\u003e\n\n    \u003c!-- prepend --\u003e\n    \u003cdiv bricklayer-prepend ng-repeat=\"item in prependData\" ng-cloak\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n## Images\nSince `v1.1.0` the grid gets redrawn when images have been loaded, by including and using [desandro's imagesloaded](https://github.com/desandro/imagesloaded)\n\n# License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Fangular-bricklayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnythetank%2Fangular-bricklayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Fangular-bricklayer/lists"}