primeng
Version:
PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB
75 lines (74 loc) • 2.77 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { BaseComponent } from 'primeng/basecomponent';
import { AvatarStyle } from './style/avatarstyle';
import * as i0 from "@angular/core";
import * as i1 from "primeng/api";
/**
* Avatar represents people using icons, labels and images.
* @group Components
*/
export declare class Avatar extends BaseComponent {
/**
* Defines the text to display.
* @group Props
*/
label: string | undefined;
/**
* Defines the icon to display.
* @group Props
*/
icon: string | undefined;
/**
* Defines the image to display.
* @group Props
*/
image: string | undefined;
/**
* Size of the element.
* @group Props
*/
size: 'normal' | 'large' | 'xlarge' | undefined;
/**
* Shape of the element.
* @group Props
*/
shape: 'square' | 'circle' | undefined;
/**
* Inline style of the element.
* @group Props
*/
style: {
[klass: string]: any;
} | null | undefined;
/**
* Class of the element.
* @group Props
*/
styleClass: string | undefined;
/**
* Establishes a string value that labels the component.
* @group Props
*/
ariaLabel: string | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
* @group Props
*/
ariaLabelledBy: string | undefined;
/**
* This event is triggered if an error occurs while loading an image file.
* @param {Event} event - Browser event.
* @group Emits
*/
onImageError: EventEmitter<Event>;
_componentStyle: AvatarStyle;
imageError(event: Event): void;
get hostClass(): any;
static ɵfac: i0.ɵɵFactoryDeclaration<Avatar, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Avatar, "p-avatar", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "image": { "alias": "image"; "required": false; }; "size": { "alias": "size"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; }, { "onImageError": "onImageError"; }, never, ["*"], true, never>;
}
export declare class AvatarModule {
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<AvatarModule, never, [typeof Avatar, typeof i1.SharedModule], [typeof Avatar, typeof i1.SharedModule]>;
static ɵinj: i0.ɵɵInjectorDeclaration<AvatarModule>;
}