salix/front/core/components/worker-autocomplete/index.js

27 lines
996 B
JavaScript
Executable File

import ngModule from '../../module';
import Autocomplete from '../autocomplete';
/**
* Input with option selector.
*
* @property {String} showFiled The data field name that should be shown
* @property {String} valueField The data field name that should be used as value
* @property {Array} data Static data for the autocomplete
* @property {Object} intialData An initial data to avoid the server request used to get the selection
* @property {Boolean} multiple Whether to allow multiple selection
* @property {Object} selection Current object selected
*
* @event change Thrown when value is changed
*/
export default class WorkerAutocomplete extends Autocomplete {
constructor($element, $, $compile, $transclude) {
super($element, $, $compile, $transclude);
}
}
WorkerAutocomplete.$inject = ['$element', '$scope', '$compile', '$transclude'];
ngModule.vnComponent('vnWorkerAutocomplete', {
template: require('./index.html'),
controller: WorkerAutocomplete
});