Victor Cerutti 447dd6640f feature : display input number next to slider (#808)
* feature : display input number next to slider

* Improvements for Box mode of input number

Add unit when available and align the value to the right

* fix for small width cards

hide state if slider width<100px

* add a space between if and (

* Fix value display after a window resize

State value is now hiding or showing correctly after a window resize, using iron-resize component

* fixes eslint validator

* Fix a typo in state-card

* Improvement : Apply all properties altogether

As suggered by @andrey-git, I made use of setProperties

* Watch for mode update of input_number

If a mode is updated and the box switches from "box" to "slider", it now also update the visibility of the state value depending on the slider width

* Update width showing state value

* Use ResizeObserver when available

* Fix conditionnal mistake

Related @andrey-git review here https://github.com/home-assistant/home-assistant-polymer/pull/808#pullrequestreview-90048982
2018-01-20 21:47:15 -08:00
2018-01-16 09:26:08 +01:00
2017-07-13 09:08:26 -07:00
2018-01-19 09:26:06 -08:00
2018-01-19 09:26:06 -08:00
2017-11-20 21:46:36 -08:00
2018-01-19 09:53:07 -08:00
2017-10-24 19:36:30 -07:00
2017-11-15 21:42:54 -08:00
2017-10-27 07:53:33 -07:00
2017-12-03 17:10:21 -08:00
2017-01-22 16:21:16 -08:00
2017-10-24 19:36:30 -07:00
2017-08-03 23:40:16 -07:00
2018-01-19 09:26:06 -08:00
2018-01-10 00:51:42 -08:00
2017-07-16 15:44:44 -07:00
2018-01-19 09:53:18 -08:00
2018-01-19 09:26:06 -08:00

Home Assistant Polymer Build Status

This is the repository for the official Home Assistant frontend. The frontend is built on top of the following technologies:

Screenshot of the frontend

View demo of the Polymer frontend
More information about Home Assistant
Frontend development instructions

License

Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.

Description
🍭 Polymer frontend for Home Assistant
Readme 144 MiB
Languages
TypeScript 93.4%
JavaScript 6.5%
Shell 0.1%