From 02f90167ac21b415677221121e83f30f90d69322 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Tue, 16 Apr 2019 17:20:53 -0500 Subject: [PATCH] New item option `entity_picture` --- README.md | 5 +-- dist/radial-menu.js | 63 +++++++++++++++++++++++--------- package.json | 2 +- src/radial-menu.ts | 87 ++++++++++++++++++++++++++++++++------------- src/types.ts | 5 +-- 5 files changed, 117 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 029660f..6ec54ca 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ This element is for [Lovelace](https://www.home-assistant.io/lovelace) on [Home | ---- | ---- | ------- | ----------- | ------- | entity | string | **Optional** | Home Assistant entity ID. | `none` | name | string | **Optional** | Tooltip for main menu | `Menu` -| icon | string | **Optional** | mdi icon for main menu | `mdi:menu` +| icon | string | **Optional** | mdi icon for main menu | `none` +| entity_picture | string | **Optional** | picture to display | `none` | tap_action | object | **Optional** | Action to take on tap | `action: more-info` ## Action Options @@ -93,7 +94,7 @@ items: service: timer.start service_data: entity_id: timer.laundry - - icon: 'mdi:headphones' + - entity_picture: '/local/headphones.png' name: Podcasts tap_action: action: navigate diff --git a/dist/radial-menu.js b/dist/radial-menu.js index 332f91f..c0c2e6b 100644 --- a/dist/radial-menu.js +++ b/dist/radial-menu.js @@ -2502,23 +2502,53 @@ let RadialMenu = class RadialMenu extends LitElement {