Last active
April 19, 2017 22:11
-
-
Save shoxter/14373df1aad936262f41f6b69d43c51f to your computer and use it in GitHub Desktop.
Paper Select
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
fitnessPlans: Ember.A([ | |
Ember.Object.create({title: "", price: 0}), | |
Ember.Object.create({title: "Plan A", price: 15}), | |
Ember.Object.create({title: "Plan B", price: 30}), | |
Ember.Object.create({title: "Plan C", price: 40}), | |
]), | |
paymentMethods: Ember.A(["E-Check", "Card", "PayPal", "Google Checkout", "Amazon Payments", "Other"]), | |
actions: { | |
setPaymentMethod(value) { | |
this.set('paymentMethod', value); | |
} | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export function money(params/*, hash*/) { | |
let input = params[0]; | |
return "$" + parseFloat(input).toFixed(2); | |
} | |
export default Ember.Helper.helper(money); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 12px 16px; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.12.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.12.0", | |
"ember-template-compiler": "2.12.0", | |
"ember-testing": "2.12.0" | |
}, | |
"addons": { | |
"ember-data": "2.12.1", | |
"ember-paper": "v1.0.0-alpha.19" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment