discourse-data-explorer/assets/javascripts/discourse/components/explorer-schema-onetable.js...

14 lines
348 B
JavaScript

export default Ember.Component.extend({
classNameBindings: [':schema-table', 'open'],
tagName: 'li',
open: Em.computed.alias('table.open'),
_bindClicks: function() {
const self = this;
this.$()./*children('.schema-table-name').*/click(function() {
self.set('open', !self.get('open'));
});
}.on('didInsertElement')
});