packages/components/eui-date-block/eui-date-block.component.ts
A visual date display component that presents dates in a calendar block format with day, month, and year. Useful for event listings, timelines, and date-centric interfaces.
<eui-date-block [blockDate]="eventDate"></eui-date-block><eui-date-block
[blockDate]="meetingDate"
dateFormat="dd/MM/yyyy">
</eui-date-block>role="section" for proper screen reader identificationLocaleServiceeuiPrimary or euiSecondary for color variantsdateFormat accepts any valid Angular DatePipe format string| changeDetection | ChangeDetectionStrategy.OnPush |
| HostDirectives |
BaseStatesDirective
Inputs : euiPrimary euiSecondary
|
| selector | eui-date-block |
| imports |
AsyncPipe
DatePipe
|
| templateUrl | ./eui-date-block.component.html |
| styleUrl | ./eui-date-block.scss |
Inputs |
HostBindings |
Accessors |
| blockDate |
Type : Date
|
| dateFormat |
Type : string
|
Default value : 'dd/M/yyyy'
|
| e2eAttr |
Type : string
|
Default value : 'eui-date-block'
|
| class |
Type : string
|
|
Computes and returns the CSS classes for the badge based on its current state |
| cssClasses |
getcssClasses()
|
|
Computes and returns the CSS classes for the badge based on its current state
Returns :
string
|