@netgrif/components
Version:
Netgrif Application Engine frontend Angular components
26 lines (25 loc) • 1.55 kB
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Case, CaseViewService, NewCaseCreationConfigurationData, NewCaseButtonConfiguration, LoadingEmitter } from '@netgrif/components-core';
import { TranslateService } from '@ngx-translate/core';
import * as i0 from "@angular/core";
export declare class CreateCaseButtonComponent implements OnInit {
protected _caseViewService: CaseViewService;
protected _translateService: TranslateService;
caseCreatedEvent: EventEmitter<Case>;
newCaseCreationConfig: NewCaseCreationConfigurationData;
disabled: boolean;
protected _resolvedCaseButtonTitle: string;
protected _resolvedCaseButtonIcon: string;
protected _loading: LoadingEmitter;
constructor(_caseViewService: CaseViewService, _translateService: TranslateService);
get resolvedCaseButtonTitle(): string;
get resolvedCaseButtonIcon(): string;
get loading$(): Observable<boolean>;
ngOnInit(): void;
resolveTranslation(config: NewCaseButtonConfiguration): string;
shouldShowCreateButton(): Observable<boolean>;
createNewCase(): Observable<Case>;
static ɵfac: i0.ɵɵFactoryDeclaration<CreateCaseButtonComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CreateCaseButtonComponent, "nc-create-case-button", never, { "newCaseCreationConfig": { "alias": "newCaseCreationConfig"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "caseCreatedEvent": "caseCreatedEvent"; }, never, never, false, never>;
}