21 lines
462 B
JavaScript
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 };
|
|
}
|