wazuh-kibana-app/public/directives/wz-config-item/wz-config-item.js

29 lines
736 B
JavaScript
Raw Normal View History

2018-08-23 13:13:02 +00:00
/*
* Wazuh app - Wazuh configuration item directive
* Copyright (C) 2018 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Find more information about this on the LICENSE file.
*/
2018-09-19 09:38:10 +00:00
import template from './wz-config-item.html';
2018-08-23 13:13:02 +00:00
import { uiModules } from 'ui/modules';
const app = uiModules.get('app/wazuh', []);
2018-09-19 09:38:10 +00:00
app.directive('wzConfigItem', function() {
return {
restrict: 'E',
scope: {
label: '@label',
value: '=value',
isArray: '=isArray'
2018-09-19 09:38:10 +00:00
},
template: template
};
2018-08-23 13:13:02 +00:00
});