Skip to content

Commit

Permalink
updated to work with new dropdown api
Browse files Browse the repository at this point in the history
  • Loading branch information
randyaskin committed May 3, 2017
1 parent 9d21748 commit 77571c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ v2.0.0
==========================
* updated dependencies for design refresh
* removed unused code: px-input-group-design
* updated to work with new dropdown api

v1.5.10
==========================
Expand Down
4 changes: 2 additions & 2 deletions css/px-demo-code-editor-styles.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions css/px-demo-styles.html

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions px-demo-props.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<!-- INPUT: 'toggle' -->
<template is="dom-if" if="{{_itIs(item.inputType, 'toggle')}}">
<div class="flex flex--justify u-mb-">
<div aria-hidden="true">{{_getFieldLabel(item)}}</div>
<div class="label" aria-hidden="true">{{_getFieldLabel(item)}}</div>
<div class="u-ml-">
<input id="toggle-{{item.prop}}" role="switch" class="toggle__input toggle__input--small " type="checkbox" checked="{{item.value::change}}" aria-checked="{{item.value::change}}" prop="{{item.prop}}" data-debounce="{{item.inputDebounce}}" on-change="_handleToggleInput">
<label for$="toggle-{{item.prop}}" class$="{{_itIsDisabled(item.inputDisabled)}} toggle__label toggle__label--small">{{_getFieldLabel(item)}}</label>
Expand Down Expand Up @@ -74,9 +74,8 @@
<template is="dom-if" if="{{_itIs(item.inputType, 'dropdown')}}">
<div class="u-mb-">
<label for$="dropdown-{{item.prop}}">{{_getFieldLabel(item)}}</label>
<div style="width: 100%;" class="u-mb--">
<px-dropdown id="dropdown-{{item.prop}}" value="{{item.value::change}}" display-value="{{_getDropdownDisplayValue(item.value)}}" prop="{{item.prop}}" data-debounce="{{item.inputDebounce}}" on-px-dropdown-value-changed="_handleDropdownInput">
<px-dropdown-content items="{{item.inputChoices}}" prop="{{item.prop}}"></px-dropdown-content>
<div class="u-mb--">
<px-dropdown style="width: 100%;" id="dropdown-{{item.prop}}" prop="{{item.prop}}" data-debounce="{{item.inputDebounce}}" items="{{item.inputChoices}}" select-by="val" selected="{{item.value}}" on-px-dropdown-selection-changed="_handleDropdownInput">
</px-dropdown>
</div>
</div>
Expand Down Expand Up @@ -339,7 +338,7 @@
* Binds a dropdown input event to the prop.value it should change.
*/
_handleDropdownInput: function(evt) {
this._syncToProp(evt.target.prop, evt.detail.val, evt.target.dataDebounce);
this._syncToProp(evt.target.prop, evt.detail.val, evt.target.dataDebounce);
},
/**
* Binds a typeahead selected event to the prop.value it should change.
Expand Down

0 comments on commit 77571c5

Please sign in to comment.