awatson1978 / ckcc

California Kids Cancer Comparison - Demo
4 stars 3 forks source link

Add BaseModal to clinical:base-modal #19

Closed awatson1978 closed 9 years ago

awatson1978 commented 9 years ago

https://github.com/peerlibrary/meteor-blaze-components/tree/master/example/client http://components.meteor.com/

awatson1978 commented 9 years ago
var BaseModal = BlazeComponent.extendComponent({
  template: function () {
    return 'baseModal';
  },

  recordId: function () {
    //var doc = Values.findOne(this.data().id);
    //if (doc) return doc.value;
    return this.data().id;
  },

  events: function () {
    return [{
      'change .searchInput': this.onChange,
      'click input': this.onClick
    }];
  },

  onClick: function (event) {

  },
  onChange: function (event) {

  }

}).register('BaseModal');
awatson1978 commented 9 years ago

So far, hasn't needed it. https://github.com/awatson1978/clinical-modals