SkeletonComponent
23 Sep 20252 minutes to read
Represents the Angular Skeleton component
<ejs-skeleton></ejs-skeleton>Properties
cssClass string
Defines single/multiple classes (separated by space) to be used for customization of Skeleton.
Defaults to ””
enablePersistence boolean
Enable or disable persisting component’s state between page reloads.
Defaults to false
enableRtl boolean
Enable or disable rendering component in right to left direction.
Defaults to false
height string|number
Defines the height of the Skeleton.
Height is not required when shape is “Circle” and “Square”.
Defaults to ””
label string
Defines the ‘aria-label’ for Skeleton accessibility.
Defaults to “Loading…”
locale string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Defaults to ’’
shape string|SkeletonType
Defines the shape of the Skeleton.
<ejs-skeleton [shape]='shape' width='48px'></ejs-skeleton>import { Component } from '@angular/core';
import { SkeletonType } from '@syncfusion/ej2-angular-notifications';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
public shape:SkeletonType = 'Circle'
}Defaults to SkeletonType.Text
shimmerEffect string|ShimmerEffect
Defines the animation effect of the Skeleton.
<ejs-skeleton shape='Circle' width='48px' [shimmerEffect]='effect'></ejs-skeleton>import { Component } from '@angular/core';
import { ShimmerEffect } from '@syncfusion/ej2-angular-notifications';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
public effect: ShimmerEffect='Pulse';
}Defaults to ShimmerEffect.Wave
visible boolean
Defines the visibility state of Skeleton.
Defaults to true
width string|number
Defines the width of the Skeleton.
Width will be prioritized and used as dimension when shape is “Circle” and “Square”.
Defaults to ””
Methods
destroy
Method to destroys the Skeleton component.
Returns void