salix/client/core/src/components/label-value/label-value.js

25 lines
466 B
JavaScript
Raw Normal View History

import ngModule from '../../module';
2018-04-17 12:49:55 +00:00
import './style.scss';
export default class Controller {
constructor() {
this.__ellipsize = true;
}
set ellipsize(value) {
this.__ellipsize = value;
}
}
ngModule.component('vnLabelValue', {
template: require('./label-value.html'),
controller: Controller,
replace: true,
transclude: true,
bindings: {
label: '@',
value: '@',
ellipsize: '<?'
}
});