packages/components/eui-date-block/eui-date-block.component.ts
A badge component that can display text, numbers, or icons with various states and styles. Supports content truncation, empty states, and icon-only modes.
| 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 |
Properties |
Inputs |
HostBindings |
Accessors |
| blockDate |
Type : Date
|
| dateFormat |
Type : string
|
Default value : 'dd/M/yyyy'
|
| e2eAttr |
Type : string
|
Default value : 'eui-date-block'
|
| attr.role |
Type : string
|
Default value : 'section'
|
| class |
Type : string
|
| role |
Type : string
|
Default value : 'section'
|
Decorators :
@HostBinding('attr.role')
|
| cssClasses |
getcssClasses()
|
|
Computes and returns the CSS classes for the badge based on its current state
Returns :
string
|