salix/front/core/components/treeview/index.js

33 lines
665 B
JavaScript
Raw Normal View History

2018-11-12 10:31:58 +00:00
import ngModule from '../../module';
import Component from '../../lib/component';
import './style.scss';
/**
* A simple tooltip.
*
* @property {String} position The relative position to the parent
*/
export default class Treeview extends Component {
constructor($element, $scope, $timeout) {
super($element, $scope);
}
get data() {
return this.model.data;
}
set selection(value) {
this._selection = value;
}
}
Treeview.$inject = ['$element', '$scope', '$attrs'];
ngModule.component('vnTreeview', {
template: require('./index.html'),
controller: Treeview,
bindings: {
model: '<'
}
});