2.8.0 • Published 1 month ago

ngx-newsticker-albe v2.8.0

Weekly downloads
106
License
Unlicense
Repository
github
Last release
1 month ago

Albe News Ticker 2.7.0

newsticker

Version history: | Library | Angular | | ------- | ------- | | Lastet | 16.0.0| | 2.6.0 | 15.2.6 | | 2.5.0 | 14.2.1 | | 2.4.2 | 11.2.14 | | 2.2.7 | 10.1.2 | | 2.2.5 | 10.1.1 | | 2.1.2 | 8.1.2 | | 1.1.1 | 6.0.1 |

Installation

$ npm install ngx-newsticker-albe

Usage

Import the module

import { NgxNewstickerAlbeModule } from 'ngx-newsticker-albe';

@NgModule({
    imports: [ NgxNewstickerAlbeModule ],
    ...
})
export class AppModule {}

Template

<ngx-newsticker title="Live News" [events]="eventList"></ngx-newsticker>

Component

export class AppComponent implements OnInit {
  eventList = new Array<string>();

  ngOnInit() {
    this.eventList.push(`Lorem ipsum dolor sit amet, <s>consectetur</s> adipiscing elit. Phasellus sit amet nibh dolor.`);
    this.eventList.push(`<span>${new Date().toLocaleString()}</span> - Sed et ligula non risus ullamcorper rhoncus quis vel ante.`);
    this.eventList.push(`<i>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.<i>`);
    this.eventList.push(`Fusce a odio interdum, <a href="#">I'm Anchor</a> rutrum lorem quis, gravida tellus.`);
  }
}

Options

NameTypeDefaultDescription
eventsrequiredArray List of messages to be displayed.
titleoptionalString''Highlighted text.
intervaloptionalNumber3000Set the time (milliseconds) interval between the text exchange.
showCounteroptionalBooleantrueSets the current count visibility.
defaultColoroptionalString'#1976D2'Change the default blue color.
backColoroptionalString'#FFFFFF'Change the back ground color of content.

Styling guide

There are several classes that help you to create your custom styles app.component.css

:host ::ng-deep .newsticker>.nt-content>label {
  color: #D32F2F;
}

Demo App

Follow these instructions to run the demo:

  1. Clone the repository to your local machine
  2. From the project folder, run npm i to install all required dependencies
  3. Run ng b ngx-newsticker-albe to build in dist folder.
  4. Run ng s to serve the project from a live-updating server.
  5. Go to localhost:4200 to see the demo site
2.8.0

1 month ago

2.7.0

12 months ago

2.6.0

1 year ago

2.3.0

2 years ago

2.5.0

2 years ago

2.4.1

2 years ago

2.3.2

2 years ago

2.4.0

2 years ago

2.3.1

2 years ago

2.4.2

2 years ago

2.3.3

2 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.5

4 years ago

2.2.4

4 years ago

2.2.7

4 years ago

2.2.6

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago