Skip to content

Instantly share code, notes, and snippets.

@vvelingkar-cci
Last active January 17, 2019 11:57
Show Gist options
  • Save vvelingkar-cci/2f3028edccc31ce39b0a6d2b4fe90d3f to your computer and use it in GitHub Desktop.
Save vvelingkar-cci/2f3028edccc31ce39b0a6d2b4fe90d3f to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
items: ['Test', 'Test1', 'Test3']
});
<h1>Welcome to {{appName}}</h1> Test
{{#paper-menu as |menu|}}
{{#menu.trigger}}
{{#paper-button iconButton=true}}
{{paper-icon "local_phone"}}
{{/paper-button}}
{{/menu.trigger}}
{{#menu.content width=4 as |content|}}
{{#each items as |item|}}
{{#content.menu-item onClick="openSomething"}}
{{paper-icon item.icon}}
<span>{{item.title}}</span>
{{/content.menu-item}}
{{/each}}
{{#content.menu-item onClick="openSomething" disabled=true}}
{{paper-icon "adb"}}
<span>This is disabled.</span>
{{/content.menu-item}}
{{paper-divider}}
{{#each items as |item|}}
{{#content.menu-item onClick="openSomething"}}
{{paper-icon item.icon}} {{item.title}}
{{/content.menu-item}}
{{/each}}
{{/menu.content}}
{{/paper-menu}}
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-data": "3.4.2",
"ember-paper": "1.0.0-alpha.14"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment