Coder Social home page Coder Social logo

seancallinan / custom-grid-view Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zsarnett/custom-grid-view

0.0 1.0 0.0 661 KB

Custom Drag and Drop Grid for Home Assistant

Home Page: https://github.com/sponsors/zsarnett

License: MIT License

JavaScript 13.92% TypeScript 86.08%

custom-grid-view's Introduction

Drag and Drop Grid Custom View (@zsarnett)

A testing ground and usable version of the Drag and Drop Grid that is being developed for Home Assistant Core Frontend.

Consider Subscribing to my YouTube Channel for updates on the Grid View: https://www.youtube.com/c/ZackBarett

Installation

⚠️ The 2020.12 Release is recommended. Extra code for this was added to this release to make Drag and Drop better!

Installation with hacs

  1. Make sure the HACS component is installed and working.

  2. Add https://github.com/zsarnett/Custom-Grid-View as a custom repository

  3. Add the configuration to your ui-lovelace.yaml

    resources:
      - url: /hacsfiles/Custom-Grid-View/grid-view.js
        type: module
  4. Refresh home-assistant.

Manual Installation

  1. Download the grid-view.js file Custom Drag and Drop Grid View

  2. Place the file in your config/www folder

  3. Add a resource to your Lovelace Dashboard

    title: Home
    resources:
      - url: /local/grid-view.js
        type: module

How to use

To change the view to use Drag and Drop Grid, update the Lovelace YAML for that view and add

type: custom:grid-dnd

Example

path: default_view
type: 'custom:grid-dnd'
title: Home
cards: []

⚠️ I recommend copying your view and modifying the copy instead of modifying your existing dashboard

⚠️ Users using YAML mode only will not have a good time :)

Notes

  • This is not the finished version

  • This version is not the best version

  • This view is bound to change and have breaking changes

  • This will add a large amount of YAML to your view. layout: {}

  • This will add a key to every card.

  • Again its not perfect and I will try to update this version as I find better ways.

  • I have built the everything that this code is using. ie. Lit-Grid-Layout

    • This means I have complete control over the changes which is good
    • This also means it may not be the best yet. I am still learning even after 2 years of working with Home Assistant. I will try to perfect the code as you all and myself test this view

** PLEASE BE PATIENT WITH ME ON THIS 😄 **

Add any bugs that you find as issues in this repo.

THANK YOU!

Consider Sponsoring me as this helps me find the time to develop this! Thank you: https://github.com/sponsors/zsarnett

Known Issues:

  • You can not have empty space between cards
  • Sometimes the place holder isn't aligned correctly
  • Some Cards do not support resizing
  • Not Mobile Friendly

custom-grid-view's People

Contributors

zsarnett avatar dependabot[bot] avatar xlinx64 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.