From 980274765fb621fa3978ca7a4f238ea476be9037 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 6 Sep 2017 13:48:31 +0200 Subject: [PATCH] dropdown to accept linked value --- src/app/ui/dropdown.js | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/app/ui/dropdown.js b/src/app/ui/dropdown.js index f7d7292bba..0621027566 100644 --- a/src/app/ui/dropdown.js +++ b/src/app/ui/dropdown.js @@ -65,7 +65,9 @@ class Dropdown { self.event = new EventManager() self.data = { _options: opts.options || [], - selected: opts.defaults || [] + _dependencies: opts.dependencies || [], + selected: opts.defaults || [], + _elements: [] } self._view = {} self._api = opts.api @@ -85,11 +87,12 @@ class Dropdown { ${self._view.selected}