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