my-test123
Version:
A planner front-end for Fabric8.
53 lines • 2.11 kB
JavaScript
import { Component, EventEmitter, Input, Output } from '@angular/core';
var SelectDropdownComponent = /** @class */ (function () {
function SelectDropdownComponent() {
this.headerText = 'This is default header';
this.menuItems = [];
this.showSearch = false;
this.onSelect = new EventEmitter();
this.onSearch = new EventEmitter();
this.onOpen = new EventEmitter();
this.onClose = new EventEmitter();
this.displayDropdown = false;
}
SelectDropdownComponent.prototype.ngOnInit = function () {
};
SelectDropdownComponent.prototype.openDropdown = function () {
this.displayDropdown = true;
this.onOpen.emit('open');
};
SelectDropdownComponent.prototype.closeDropdown = function () {
this.displayDropdown = false;
this.onClose.emit('close');
};
SelectDropdownComponent.prototype.selectItem = function (item) {
this.onSelect.emit(item);
};
SelectDropdownComponent.prototype.searchItem = function (text) {
this.onSearch.emit(text);
};
SelectDropdownComponent.decorators = [
{ type: Component, args: [{
selector: 'f8-select-dropdown',
template: require('./select-dropdown.component.html'),
styles: [require('./select-dropdown.component.css').toString()]
},] },
];
/** @nocollapse */
SelectDropdownComponent.ctorParameters = function () { return []; };
SelectDropdownComponent.propDecorators = {
'headerText': [{ type: Input },],
'toggleButtonRef': [{ type: Input },],
'dropdownItem': [{ type: Input },],
'dropdownFooter': [{ type: Input },],
'menuItems': [{ type: Input },],
'showSearch': [{ type: Input },],
'onSelect': [{ type: Output },],
'onSearch': [{ type: Output },],
'onOpen': [{ type: Output },],
'onClose': [{ type: Output },],
};
return SelectDropdownComponent;
}());
export { SelectDropdownComponent };
//# sourceMappingURL=select-dropdown.component.js.map