From a5a77a21acd7c3884a7107b6f32be786906d527b Mon Sep 17 00:00:00 2001 From: Florian Maffini Date: Sun, 13 Nov 2016 16:41:36 +0100 Subject: [PATCH] ability to select a node clicking the icon --- README.md | 1 + bower.json | 2 +- demo/playground.html | 72 ++++++++++++++++++++++++++++++++++++++++++++ paper-tree-node.html | 46 ++++++++++++++-------------- test/basic-test.html | 12 ++++---- 5 files changed, 102 insertions(+), 31 deletions(-) create mode 100644 demo/playground.html diff --git a/README.md b/README.md index 7c95482..f1a2a50 100755 --- a/README.md +++ b/README.md @@ -87,6 +87,7 @@ See documentation to know the options and structure of the `data` attribute. ## History +* **1.0.1:** ability to select a node clicking the icon. * **1.0.0:** initial release. ## License diff --git a/bower.json b/bower.json index 736f7ae..982b1df 100755 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "paper-tree", "main": "paper-tree.html", - "version": "1.0.0", + "version": "1.0.1", "description": "A custom element displaying a browsable tree.", "keywords": [ "tree", diff --git a/demo/playground.html b/demo/playground.html new file mode 100644 index 0000000..085d0a6 --- /dev/null +++ b/demo/playground.html @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + diff --git a/paper-tree-node.html b/paper-tree-node.html index bed43c3..8b51286 100755 --- a/paper-tree-node.html +++ b/paper-tree-node.html @@ -22,7 +22,7 @@ Custom property | Description | Default ----------------|-------------|---------- `--paper-tree-selected-background-color` | Highlight color for selected node | `rgba(200, 200, 200, 0.5)` -`--paper-tree-selected--color` | Text and icon color for selected node | `#000` +`--paper-tree-selected--color` | Text and icon color for selected node | `rgb(0, 0, 0)` @demo --> @@ -33,44 +33,49 @@