https://github.com/zsarnett/lit-grid-layout
Grid Layout using Lit Element
https://github.com/zsarnett/lit-grid-layout
dom drag grid-items grid-layout javascript lit-element litelement typescript webcomponents
Last synced: about 1 year ago
JSON representation
Grid Layout using Lit Element
- Host: GitHub
- URL: https://github.com/zsarnett/lit-grid-layout
- Owner: zsarnett
- License: mit
- Created: 2020-07-24T03:30:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T13:21:52.000Z (over 3 years ago)
- Last Synced: 2024-11-17T19:49:36.453Z (over 1 year ago)
- Topics: dom, drag, grid-items, grid-layout, javascript, lit-element, litelement, typescript, webcomponents
- Language: TypeScript
- Homepage: https://lit-grid-layout.netlify.app/
- Size: 863 KB
- Stars: 29
- Watchers: 6
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/js/lit-grid-layout)  [](https://snyk.io/test/github/zsarnett/Lit-Grid-Layout?targetFile=package.json)
[](https://codeclimate.com/github/zsarnett/Lit-Grid-Layout/maintainability)
# Lit Grid Layout
Draggable and Resizable Grid Layout for Lit Element

[[Demo](https://lit-grid-layout.netlify.app/)]
### Todo
- [x] Create Layout algorithm that takes a layout array [{width, height, x, y}] and sorts its, and places it in the DOM without going over bounds, etc
- [x] Ability to drag the Grid Items around the DOM and regenerate the layout when it is moved.
- [x] Ability to resize the Grid Items and regenerate the layout when moved
- [x] Ability to specify an element for the drag handle
- [ ] Ability to specify an element for the drag handle through a shadowroot
- [x] Fix Mobile resizing
- [ ] Test the code, review the code, make sure we are production ready
- [ ] Add edge cases, only update if we need to, checks in place to not break
### Note
This library has not been fully released. I will not be including any breaking changes or release notes as this is being actively developed. Please star the repo and set up watch for releases. I will release the main version as 1.2. This will be after I fully integrate and finalize the implementaion into Home Assistant
Please consider sponsoring me via Github Sponsors to show support for this repo.