2021-05-04 10:44:21 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import Section from 'salix/components/section';
|
2021-05-11 07:43:15 +00:00
|
|
|
import './style.scss';
|
2021-05-04 10:44:21 +00:00
|
|
|
|
2021-06-15 11:48:42 +00:00
|
|
|
export default class Controller extends Section {
|
|
|
|
toggle() {
|
|
|
|
const monitor = this.element.querySelector('vn-horizontal');
|
|
|
|
const isHidden = monitor.classList.contains('hidden');
|
|
|
|
|
|
|
|
if (!isHidden)
|
|
|
|
monitor.classList.add('hidden');
|
|
|
|
else
|
|
|
|
monitor.classList.remove('hidden');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-04 10:44:21 +00:00
|
|
|
ngModule.vnComponent('vnMonitorIndex', {
|
|
|
|
template: require('./index.html'),
|
2021-06-15 11:48:42 +00:00
|
|
|
controller: Controller,
|
|
|
|
require: {
|
|
|
|
main: '^vnMonitorIndex'
|
|
|
|
}
|
2021-05-04 10:44:21 +00:00
|
|
|
});
|