Files
backroad/app/portainer/components/box-selector/index.js
2021-10-03 15:17:34 +03:00

21 lines
462 B
JavaScript

import angular from 'angular';
import './box-selector.css';
import controller from './box-selector.controller';
angular.module('portainer.app').component('boxSelector', {
templateUrl: './box-selector.html',
controller,
bindings: {
radioName: '@',
ngModel: '=',
options: '<',
onChange: '<',
},
});
export function buildOption(id, icon, label, description, value, feature) {
return { id, icon, label, description, value, feature };
}