Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ngx-mat-timeline
Advanced tools
Readme
Timeline component for Angular Material
npm -i ngx-mat-timeline
Fro more details see projects/demo application
import { NgxMatTimelineModule } from "ngx-mat-timeline";
...
@NgModule({
imports: [
...,
NgxMatTimelineModule,
],
...
})
class AppModule { ... }
Basic template
<ngx-mat-timeline
position="center"
orientation="horizontal">
<ngx-mat-timeline-item
*ngFor="let item of timelineItems"
[icon]="item.icon"
[label]="item.label">
{{ item.content }}
</ngx-mat-timeline-item>
</ngx-mat-timeline>
Custom template
<ngx-mat-timeline
position="center"
orientation="horizontal">
<ngx-mat-timeline-item
*ngFor="let item of timelineItems; let idx = index;">
<ng-template ngxMatTimelineItemIcon>
<div class="custom-icon">{{ idx + 1 }}</div>
</ng-template>
<ng-template ngxMatTimelineItemLabel>
<div class="custom-label">{{ item.label }}</div>
</ng-template>
<div class="custom-content">
<img [src]="'./assets/image' + (idx + 1) + '.jpg'">
{{ item.content }}
</div>
</ngx-mat-timeline-item>
</ngx-mat-timeline>
@Input | Type | Available values | Default |
---|---|---|---|
orientation | string | vertical, horizontal | vertical |
position | string | start, center, center-alt, end | start |
reverse | boolean | false |
@Input | Type | Available values | Default |
---|---|---|---|
icon | string | Standard MatIcon value | |
svgIcon | string | Standard MatIcon value (svgIcon) | |
iconUrl | string | Image url | |
label | string | Text |
Note: If multiple icons are defined, only first one is displayed (icon or svgIcon or iconUrl).
Use with ng-template.
ngxMatTimelineItemIcon
ngxMatTimelineItemLabel
FAQs
Timeline component for Angular Material
The npm package ngx-mat-timeline receives a total of 350 weekly downloads. As such, ngx-mat-timeline popularity was classified as not popular.
We found that ngx-mat-timeline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.