How to use the @angular/core.Output function in @angular/core

To help you get started, we’ve selected a few @angular/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github accordproject / concerto / packages / composer-playground / src / app / common / drawer / drawer.component.ts View on Github external
})
export class DrawerComponent implements OnInit,
    AfterViewInit, OnDestroy {

  @Input('closing')
  closing: boolean | string = false;

  @Input('keyboard')
  keyboard: boolean = true;

  @Input('drawerClass')
  drawerClass: string;

  @Output('dismissEvent') dismissEvent = new EventEmitter();

  @Output('closedEvent') closedEvent = new EventEmitter();

  @HostBinding() tabindex = '-1';

  @HostBinding('class')
  get getClasses() {
    return 'drawer' + (this.drawerClass ? ' ' + this.drawerClass : '');
  }

  @HostBinding('@slideOpenClosed')
  get isClosing() {
    return this.closing ? 'closed' : 'open';
  }

  private _elWithFocus: Element;  // element that is focused prior to modal opening

  private dismissReason;
github bergben / ng2-file-input / src / ng2-file-input.component.ts View on Github external
public invalidFile: boolean = false;
    @Input() id: string;
    @Input('drop-text') dropText: string;
    @Input('browse-text') browseText: string;
    @Input('remove-text') removeText: string;
    @Input('invalid-file-text') invalidFileText: string;
    @Input('invalid-file-timeout') invalidFileTimeout: number;
    @Input('multiple') multiple: boolean=null;
    @Input('accept') accept: string;
    @Input('removable') removable: boolean=null;
    @Input('show-previews') showPreviews: boolean=null;
    @Input('extensions') extensions: string[];
    @Output('onAction') outputAction = new EventEmitter();
    @Output('onRemoved') outputRemoved = new EventEmitter();
    @Output('onAdded') outputAdded = new EventEmitter();
    @Output('onInvalidDenied') outputInvalidDenied = new EventEmitter();
    @Output('onCouldNotRemove') outputCouldNotRemove = new EventEmitter();
    @Output('onCouldNotAdd') outputCouldNotAdd = new EventEmitter();
    constructor(@Inject(forwardRef(() => FileInputHandlerService)) private fileInputHandlerService: FileInputHandlerService, @Inject(forwardRef(() => DomSanitizer)) private sanitizer: DomSanitizer,@Inject(forwardRef(() => Ng2FileInputOptions)) private defaultOptions: Ng2FileInputOptions) {
    }
    ngOnInit() {
        this.dropText = this.dropText || this.defaultOptions.dropText;
        this.browseText = this.browseText || this.defaultOptions.browseText;
        this.removeText = this.removeText || this.defaultOptions.removeText;
        this.invalidFileText = this.invalidFileText || this.defaultOptions.invalidFileText;
        this.invalidFileTimeout = this.invalidFileTimeout || this.defaultOptions.invalidFileTimeout;
        this.multiple = this.multiple !== null ? this.multiple : this.defaultOptions.multiple;
        this.accept = this.accept !== null ? this.accept : this.defaultOptions.accept;
        this.removable = this.removable !== null ? this.removable : this.defaultOptions.removable;
        this.showPreviews = this.showPreviews !== null ? this.showPreviews : this.defaultOptions.showPreviews;
        this.extensions = this.extensions || this.defaultOptions.extensions;
        if(typeof(this.id)==="undefined" || !this.id || this.id===null){
github syncfusion / ej-angular2 / ej / treemap.component.ts View on Github external
@Input('levels') levels_input: any;
    @Input('options') options: any;

	@Input('dataSource') dataSource_two: any;
	@Output('dataSourceChange') dataSource_twoChange = new EventEmitter();
	@Input('weightValuePath') weightValuePath_two: any;
	@Output('weightValuePathChange') weightValuePath_twoChange = new EventEmitter();

	@Output('treeMapItemSelected') treeMapItemSelected_output = new EventEmitter();
	@Output('itemRendering') itemRendering_output = new EventEmitter();
	@Output('legendItemRendering') legendItemRendering_output = new EventEmitter();
	@Output('drillStarted') drillStarted_output = new EventEmitter();
	@Output('drillDownItemSelected') drillDownItemSelected_output = new EventEmitter();
	@Output('headerTemplateRendering') headerTemplateRendering_output = new EventEmitter();
	@Output('refreshed') refreshed_output = new EventEmitter();
	@Output('treeMapGroupSelected') treeMapGroupSelected_output = new EventEmitter();
	@Output('Click') Click_output = new EventEmitter();
	@Output('doubleClick') doubleClick_output = new EventEmitter();
	@Output('rightClick') rightClick_output = new EventEmitter();

	@ContentChild(TreeMapLevelsDirective) tag_levels: any;
	@ContentChild(TreeMapRangeColorMappingDirective) tag_rangeColorMapping: any;
    constructor(public el: ElementRef, public cdRef: ChangeDetectorRef, private _ejIterableDiffers: IterableDiffers, private _ejkeyvaluediffers: KeyValueDiffers) {
        super('TreeMap', el, cdRef, ['levels', 'rangeColorMapping'], _ejIterableDiffers, _ejkeyvaluediffers);
    }



}

export var EJ_TREEMAP_COMPONENTS: Type[] = [TreeMapComponent
, TreeMapLevelsDirective, TreeMapRangeColorMappingDirective, TreeMapLevelDirective, TreeMapRangeColorDirective];
github mezoistvan / ng2-flatpickr / dist / fesm2015 / ng2-flatpickr.js View on Github external
Input('static')
], Ng2FlatpickrDirective.prototype, "flatpickrStatic", void 0);
__decorate([
    Input('time_24hr')
], Ng2FlatpickrDirective.prototype, "flatpickrTime_24hr", void 0);
__decorate([
    Input('utc')
], Ng2FlatpickrDirective.prototype, "flatpickrUtc", void 0);
__decorate([
    Input('weekNumbers')
], Ng2FlatpickrDirective.prototype, "flatpickrWeekNumbers", void 0);
__decorate([
    Input('wrap')
], Ng2FlatpickrDirective.prototype, "flatpickrWrap", void 0);
__decorate([
    Output('onChange')
], Ng2FlatpickrDirective.prototype, "flatpickrOnChange", void 0);
__decorate([
    Output('onClose')
], Ng2FlatpickrDirective.prototype, "flatpickrOnClose", void 0);
__decorate([
    Output('onOpen')
], Ng2FlatpickrDirective.prototype, "flatpickrOnOpen", void 0);
__decorate([
    Output('onReady')
], Ng2FlatpickrDirective.prototype, "flatpickrOnReady", void 0);
__decorate([
    HostListener('dblclick')
], Ng2FlatpickrDirective.prototype, "onClick", null);
Ng2FlatpickrDirective = __decorate([
    Directive({ selector: '[flatpickr]', exportAs: 'ng2-flatpickr' })
], Ng2FlatpickrDirective);
github syncfusion / ej-angular2 / ej / spreadsheet.component.ts View on Github external
@Output('beforeBatchSave') beforeBatchSave_output = new EventEmitter();
	@Output('beforeCellFormat') beforeCellFormat_output = new EventEmitter();
	@Output('beforeCellSelect') beforeCellSelect_output = new EventEmitter();
	@Output('beforeDrop') beforeDrop_output = new EventEmitter();
	@Output('beforeEditComment') beforeEditComment_output = new EventEmitter();
	@Output('beforeOpen') beforeOpen_output = new EventEmitter();
	@Output('beforePanelOpen') beforePanelOpen_output = new EventEmitter();
	@Output('cellClick') cellClick_output = new EventEmitter();
	@Output('cellEdit') cellEdit_output = new EventEmitter();
	@Output('cellFormatting') cellFormatting_output = new EventEmitter();
	@Output('cellHover') cellHover_output = new EventEmitter();
	@Output('cellSave') cellSave_output = new EventEmitter();
	@Output('cellSelected') cellSelected_output = new EventEmitter();
	@Output('contextMenuClick') contextMenuClick_output = new EventEmitter();
	@Output('drag') drag_output = new EventEmitter();
	@Output('dragShape') dragShape_output = new EventEmitter();
	@Output('dragStart') dragStart_output = new EventEmitter();
	@Output('drop') drop_output = new EventEmitter();
	@Output('editRangeBegin') editRangeBegin_output = new EventEmitter();
	@Output('editRangeComplete') editRangeComplete_output = new EventEmitter();
	@Output('keyDown') keyDown_output = new EventEmitter();
	@Output('keyUp') keyUp_output = new EventEmitter();
	@Output('load') load_output = new EventEmitter();
	@Output('loadComplete') loadComplete_output = new EventEmitter();
	@Output('menuClick') menuClick_output = new EventEmitter();
	@Output('onImport') onImport_output = new EventEmitter();
	@Output('openFailure') openFailure_output = new EventEmitter();
	@Output('pagerClick') pagerClick_output = new EventEmitter();
	@Output('resizeStart') resizeStart_output = new EventEmitter();
	@Output('resizeEnd') resizeEnd_output = new EventEmitter();
	@Output('ribbonClick') ribbonClick_output = new EventEmitter();
	@Output('tabClick') tabClick_output = new EventEmitter();
github yagajs / leaflet-ng2 / ts / rectangle.directive.ts View on Github external
* Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#rectangle-popupopen Original Leaflet documentation
     */
    @Output("popupopen") public popupopenEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired popupclose event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#rectangle-popupclose Original Leaflet documentation
     */
    @Output("popupclose") public popupcloseEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired tooltipopen event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#rectangle-tooltipopen Original Leaflet documentation
     */
    @Output("tooltipopen") public tooltipopenEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired tooltipclose event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#rectangle-tooltipclose Original Leaflet documentation
     */
    @Output("tooltipclose") public tooltipcloseEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired click event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#rectangle-click Original Leaflet documentation
     */
    @Output("click") public clickEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired dblclick event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#rectangle-dblclick Original Leaflet documentation
github syncfusion / ej-angular2 / ej / schedule.component.ts View on Github external
@Output('beforeContextMenuOpen') beforeContextMenuOpen_output = new EventEmitter();
	@Output('cellClick') cellClick_output = new EventEmitter();
	@Output('cellDoubleClick') cellDoubleClick_output = new EventEmitter();
	@Output('cellHover') cellHover_output = new EventEmitter();
	@Output('create') create_output = new EventEmitter();
	@Output('destroy') destroy_output = new EventEmitter();
	@Output('drag') drag_output = new EventEmitter();
	@Output('dragStart') dragStart_output = new EventEmitter();
	@Output('dragStop') dragStop_output = new EventEmitter();
	@Output('menuItemClick') menuItemClick_output = new EventEmitter();
	@Output('navigation') navigation_output = new EventEmitter();
	@Output('queryCellInfo') queryCellInfo_output = new EventEmitter();
	@Output('reminder') reminder_output = new EventEmitter();
	@Output('resize') resize_output = new EventEmitter();
	@Output('resizeStart') resizeStart_output = new EventEmitter();
	@Output('resizeStop') resizeStop_output = new EventEmitter();
	@Output('overflowButtonClick') overflowButtonClick_output = new EventEmitter();
	@Output('overflowButtonHover') overflowButtonHover_output = new EventEmitter();
	@Output('keyDown') keyDown_output = new EventEmitter();
	@Output('appointmentCreated') appointmentCreated_output = new EventEmitter();
	@Output('appointmentChanged') appointmentChanged_output = new EventEmitter();
	@Output('appointmentRemoved') appointmentRemoved_output = new EventEmitter();

	@ContentChild(ScheduleResourcesDirective) tag_resources: any;
    constructor(public el: ElementRef, public cdRef: ChangeDetectorRef, private _ejIterableDiffers: IterableDiffers, private _ejkeyvaluediffers: KeyValueDiffers) {
        super('Schedule', el, cdRef, ['resources'], _ejIterableDiffers, _ejkeyvaluediffers);
    }



}
github yagajs / leaflet-ng2 / ts / feature-group.directive.ts View on Github external
* Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#featuregroup-add Original Leaflet documentation
     */
    @Output("add") public addEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired remove event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#featuregroup-remove Original Leaflet documentation
     */
    @Output("remove") public removeEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired popupopen event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#featuregroup-popupopen Original Leaflet documentation
     */
    @Output("popupopen") public popupopenEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired popupclose event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#featuregroup-popupclose Original Leaflet documentation
     */
    @Output("popupclose") public popupcloseEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired tooltipopen event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#featuregroup-tooltipopen Original Leaflet documentation
     */
    @Output("tooltipopen") public tooltipopenEvent: EventEmitter = new EventEmitter();
    /**
     * From leaflet fired tooltipclose event.
     * Use it with ``
     * @link http://leafletjs.com/reference-1.2.0.html#featuregroup-tooltipclose Original Leaflet documentation
github syncfusion / ej-angular2 / ej / spreadsheet.component.ts View on Github external
@Output('actionBegin') actionBegin_output = new EventEmitter();
	@Output('actionComplete') actionComplete_output = new EventEmitter();
	@Output('autoFillBegin') autoFillBegin_output = new EventEmitter();
	@Output('autoFillComplete') autoFillComplete_output = new EventEmitter();
	@Output('beforeBatchSave') beforeBatchSave_output = new EventEmitter();
	@Output('beforeCellFormat') beforeCellFormat_output = new EventEmitter();
	@Output('beforeCellSelect') beforeCellSelect_output = new EventEmitter();
	@Output('beforeDrop') beforeDrop_output = new EventEmitter();
	@Output('beforeEditComment') beforeEditComment_output = new EventEmitter();
	@Output('beforeOpen') beforeOpen_output = new EventEmitter();
	@Output('beforePanelOpen') beforePanelOpen_output = new EventEmitter();
	@Output('cellClick') cellClick_output = new EventEmitter();
	@Output('cellEdit') cellEdit_output = new EventEmitter();
	@Output('cellFormatting') cellFormatting_output = new EventEmitter();
	@Output('cellHover') cellHover_output = new EventEmitter();
	@Output('cellSave') cellSave_output = new EventEmitter();
	@Output('cellSelected') cellSelected_output = new EventEmitter();
	@Output('contextMenuClick') contextMenuClick_output = new EventEmitter();
	@Output('drag') drag_output = new EventEmitter();
	@Output('dragShape') dragShape_output = new EventEmitter();
	@Output('dragStart') dragStart_output = new EventEmitter();
	@Output('drop') drop_output = new EventEmitter();
	@Output('editRangeBegin') editRangeBegin_output = new EventEmitter();
	@Output('editRangeComplete') editRangeComplete_output = new EventEmitter();
	@Output('keyDown') keyDown_output = new EventEmitter();
	@Output('keyUp') keyUp_output = new EventEmitter();
	@Output('load') load_output = new EventEmitter();
	@Output('loadComplete') loadComplete_output = new EventEmitter();
	@Output('menuClick') menuClick_output = new EventEmitter();
	@Output('onImport') onImport_output = new EventEmitter();
github syncfusion / ej-angular2 / ej / diagram.component.ts View on Github external
@Output('autoScrollChange') autoScrollChange_output = new EventEmitter();
	@Output('click') click_output = new EventEmitter();
	@Output('ejclick') ejclick_output = new EventEmitter();
	@Output('connectionChange') connectionChange_output = new EventEmitter();
	@Output('connectorCollectionChange') connectorCollectionChange_output = new EventEmitter();
	@Output('connectorSourceChange') connectorSourceChange_output = new EventEmitter();
	@Output('connectorTargetChange') connectorTargetChange_output = new EventEmitter();
	@Output('contextMenuBeforeOpen') contextMenuBeforeOpen_output = new EventEmitter();
	@Output('contextMenuClick') contextMenuClick_output = new EventEmitter();
	@Output('doubleClick') doubleClick_output = new EventEmitter();
	@Output('drag') drag_output = new EventEmitter();
	@Output('dragEnter') dragEnter_output = new EventEmitter();
	@Output('dragLeave') dragLeave_output = new EventEmitter();
	@Output('dragOver') dragOver_output = new EventEmitter();
	@Output('drop') drop_output = new EventEmitter();
	@Output('editorFocusChange') editorFocusChange_output = new EventEmitter();
	@Output('groupChange') groupChange_output = new EventEmitter();
	@Output('historyChange') historyChange_output = new EventEmitter();
	@Output('itemClick') itemClick_output = new EventEmitter();
	@Output('mouseEnter') mouseEnter_output = new EventEmitter();
	@Output('mouseLeave') mouseLeave_output = new EventEmitter();
	@Output('mouseOver') mouseOver_output = new EventEmitter();
	@Output('nodeCollectionChange') nodeCollectionChange_output = new EventEmitter();
	@Output('propertyChange') propertyChange_output = new EventEmitter();
	@Output('rotationChange') rotationChange_output = new EventEmitter();
	@Output('scrollChange') scrollChange_output = new EventEmitter();
	@Output('segmentChange') segmentChange_output = new EventEmitter();
	@Output('selectionChange') selectionChange_output = new EventEmitter();
	@Output('sizeChange') sizeChange_output = new EventEmitter();
	@Output('textChange') textChange_output = new EventEmitter();