mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Dropdown menus can now be disabled.
This commit is contained in:
@@ -14,7 +14,7 @@ it a <select>-like API. This means:
|
||||
|
||||
<polymer-element name="loot-dropdown-menu">
|
||||
<template>
|
||||
<paper-dropdown-menu>
|
||||
<paper-dropdown-menu disabled="{{disabled}}">
|
||||
<paper-dropdown class="dropdown">
|
||||
<core-menu valueattr="value">
|
||||
<content></content>
|
||||
@@ -25,6 +25,7 @@ it a <select>-like API. This means:
|
||||
<script>
|
||||
Polymer({
|
||||
value: undefined,
|
||||
disabled: false,
|
||||
|
||||
attached: function() {
|
||||
this.shadowRoot.firstElementChild.lastElementChild.firstElementChild.addEventListener('core-select', this.onItemSelect, false);
|
||||
|
||||
Reference in New Issue
Block a user