Commit 0ff137058e78fc1c8efe9f40c4c51d98e068ecca
1 parent
9579b866
suggested dataset list
Showing
2 changed files
with
23 additions
and
8 deletions
controllets/dataset-selection-controllet/dataset-selection-controllet.html
... | ... | @@ -181,7 +181,7 @@ |
181 | 181 | <paper-dropdown-menu label="Suggested datasets"> |
182 | 182 | <paper-menu class="dropdown-content"> |
183 | 183 | <template is="dom-repeat" items={{suggestedDatasets}} as="dataset"> |
184 | - <paper-item id={{index}} on-tap="_selectDataUrl">{{dataset.name}}</paper-item> | |
184 | + <paper-item id={{index}} on-tap="_selectSuggestedDataUrl">{{dataset.name}}</paper-item> | |
185 | 185 | <!--<paper-item id={{index}} on-tap="_selectDataUrl">{{_addHTMLSpace(dataset.name)}}</paper-item>--> |
186 | 186 | </template> |
187 | 187 | </paper-menu> |
... | ... | @@ -327,9 +327,24 @@ |
327 | 327 | }, |
328 | 328 | |
329 | 329 | _selectDataUrl : function(e){ |
330 | + console.log(e.target); | |
330 | 331 | var dataset = this.filteredDatasets[parseInt(e.target.id)] |
331 | 332 | |
332 | -// this.$.input_search.value = ""; | |
333 | + this.dataUrl = dataset.url; | |
334 | + | |
335 | +// if(dataset.description != ""){ | |
336 | +// this.$.info_button.removeAttribute("disabled"); | |
337 | +// this.$.dialog_name.innerHTML = dataset.name; | |
338 | +// this.$.dialog_description.innerHTML = dataset.description; | |
339 | +// } | |
340 | +// else | |
341 | +// this.$.info_button.setAttribute("disabled", "true"); | |
342 | + }, | |
343 | + | |
344 | + _selectSuggestedDataUrl : function(e){ | |
345 | + console.log(e.target); | |
346 | + var dataset = this.suggestedDatasets[parseInt(e.target.id)] | |
347 | + | |
333 | 348 | this.dataUrl = dataset.url; |
334 | 349 | |
335 | 350 | // if(dataset.description != ""){ | ... | ... |
controllets/items-vslider-controllet/items-vslider-controllet.html
... | ... | @@ -96,11 +96,11 @@ |
96 | 96 | } |
97 | 97 | |
98 | 98 | .clear { |
99 | - margin-bottom: 3px; | |
100 | - width: 16px; | |
101 | - height: 16px; | |
102 | - color: #2196F3; | |
103 | - --paper-icon-button-ink-color: #2196F3; | |
99 | + width: 24px; | |
100 | + height: 24px; | |
101 | + padding: 0px 4px; | |
102 | + color: #FFFFFF; | |
103 | + --paper-icon-button-ink-color: #FFFFFF; | |
104 | 104 | } |
105 | 105 | </style> |
106 | 106 | |
... | ... | @@ -110,7 +110,7 @@ |
110 | 110 | |
111 | 111 | <paper-input id="items_vslider_search" value={{filter}} no-label-float label="search"> |
112 | 112 | <iron-icon class="search" icon="search" prefix></iron-icon> |
113 | - <paper-icon-button class="clear" suffix on-click="_clearInput" icon="clear"></paper-icon-button> | |
113 | + <paper-icon-button class="clear" suffix on-click="_clearInput" icon="clear" tabindex="0"></paper-icon-button> | |
114 | 114 | </paper-input> |
115 | 115 | |
116 | 116 | <div class="arrow-up"> | ... | ... |