Initial commit. Modified the Meteor todos app to create the Petit Teton data tracking app. Has working data for sales. Requires a Mongo database.
This commit is contained in:
25
imports/ui/Measures.js
Normal file
25
imports/ui/Measures.js
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
import './Measures.html';
|
||||
|
||||
Template.Measures.helpers({
|
||||
// someFunctionNameCalledByTemplate: function() {
|
||||
// return something;
|
||||
// }
|
||||
measures: function () {
|
||||
return Measures.find({});
|
||||
}
|
||||
});
|
||||
|
||||
Template.Measures.events({
|
||||
// 'click .something': function() {
|
||||
// Meteor.call('someMethodOnServer', this.something, someotherparam);
|
||||
// Session.set('someValue', Session.get('someOtherValue'));
|
||||
// console.log("Got here");
|
||||
// }
|
||||
|
||||
'click .trash': function() {
|
||||
//Calls deleteMeasure which is in the collection for Measures.
|
||||
Meteor.call('deleteMeasure', this._id);
|
||||
console.log("Got here");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user