Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
core-dropdown updates, new demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Sep 16, 2014
1 parent ec6d149 commit 77e2e05
Show file tree
Hide file tree
Showing 3 changed files with 381 additions and 62 deletions.
8 changes: 8 additions & 0 deletions core-menu-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ license that can be found in the LICENSE file.
:host {
position: relative;
display: inline-block;
}

#dropdown {
margin: 12px;
background: #fff;
color: #000;
border-radius: 3px;
border: 1px solid #ccc;
}
6 changes: 3 additions & 3 deletions core-menu-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<link rel="stylesheet" href="core-menu-button.css">
<core-icon-button id="button" on-tap="{{toggle}}" src="{{src}}" icon="{{icon}}" active="{{opened}}"><span>{{label}}</span></core-icon-button>
<core-dropdown id="dropdown" relatedTarget="{{$.button}}" opened="{{opened}}" halign="{{halign}}" valign="{{valign}}">
<core-menu selected="{{selected}}" selectedItem="{{selectedItem}}" selectedClass="{{selectedClass}}" valueattr="{{valueattr}}" on-core-select="{{closeAction}}">
<core-menu selected="{{selected}}" selectedItem="{{selectedItem}}" selectedClass="{{selectedClass}}" valueattr="{{valueattr}}" on-core-activate="{{closeAction}}">
<content select="*"></content>
</core-menu>
</core-dropdown>
Expand Down Expand Up @@ -84,14 +84,14 @@
* @attribute halign
* @type string
*/
halign: 'auto',
halign: 'left',

/**
* Display the overlay on top or below the button.
* @attribute valign
* @type string
*/
valign: 'auto'
valign: 'top'

},

Expand Down
Loading

0 comments on commit 77e2e05

Please sign in to comment.