GithubHelp home page GithubHelp logo

sllanes / lovelace-collapsable-cards Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rossmcmillan92/lovelace-collapsable-cards

0.0 0.0 0.0 18.96 MB

A custom Lovelace card that hides other cards behind a dropdown toggle

JavaScript 100.00%

lovelace-collapsable-cards's Introduction

Collapsable cards

Hide a list of cards behind a dropdown.

collapsable-cards.mov

Big thanks to ofekashery, the author of vertical-stack-in-card, whose code I copied to make this card.

Options

Name Type Default Description
type string custom:collapsable-cards
cards list List of cards
defaultOpen boolean false Whether the cards should be visible by default
title string "Toggle" Dropdown title
buttonStyle string "" CSS overrides for the dropdown toggle button

Installation

HACS

Add this repository via HACS Custom repositories

https://github.com/RossMcMillan92/lovelace-collapsable-cards

(How to add Custom Repositories)

Manually

In-depth tutorial here, otherwise follow these steps:

  1. Install the collapsable-cards card by copying collapsable-cards.js to <config directory>/www/collapsable-cards.js

  2. On your lovelace dashboard

    1. Click options
    2. Edit dashboard
    3. Click Options
    4. Manage resources
    5. Add resource
      • URL: /local/collapsable-cards.js
      • Resource type: JavaScript module
  3. Add a custom card to your dashboard

type: 'custom:collapsable-cards'
title: Office
cards:
  - type: entities
    entities:
      - entity: light.office_desk_led
      - entity: light.office_led_strips
      - entity: sensor.ross_work_laptop_is_on
    show_header_toggle: false

lovelace-collapsable-cards's People

Contributors

rossmcmillan92 avatar sllanes avatar dcs8 avatar gislis2 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.