11.0.0 • Published 2 years ago

@logo-software/toast v11.0.0

Weekly downloads
2
License
See license in LI...
Repository
-
Last release
2 years ago

Toast Module

Toast messages inform users of a process that an app has performed or will perform. They appear temporarily, towards the right top of the screen. They shouldn’t interrupt the user experience, and they don’t require user input to disappear. Optionally, it accepts options from outside.

Click here for demo

Installation

All public npm packages of Logo Software is at https://www.npmjs.com/~logofe. To install Toast Module:

$ npm set registry https://registry.npmjs.org/
$ npm install @logo-software/toast -s

Just import it to your project of @NgModule import section.

app.module.ts

@NgModule({
 imports: [ToastModule],
 providers: [ToastService]
})
export class AppModule {
}

Toast Component

The Toast Component is run through the Toast Service. However, the Toast Component must be added to the main module of the application first. Then it is enough to add <logo-toast></logo-toast> to html. Add the below code to your code stack and give initializer parameters.

app.component.html

<logo-toast></logo-toast>

Toast Service

Toast Service used for create Toast Message. A toast is a lightweight, ephemeral notice from an application in direct response to a user's action.

any.component.ts

@Component({
  selector: 'logo-toast-sample',
  templateUrl: './toast-showcase.component.html',
  styleUrls: ['./toast-showcase.component.scss'],
})
export class ToastShowcaseComponent {
  constructor(private toastService: ToastService) {
    this.toastService.error('message content goes here'); // error message
    this.toastService.warning('message content goes here'); // warning message
    this.toastService.information('message content goes here'); // info message
    this.toastService.success('message content goes here'); // success message
  }
}

For API details, please visit http://design.logo.com.tr/#/docs/components/components-overview

11.0.0

2 years ago

4.0.0

2 years ago

0.1.3

2 years ago

0.1.2

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.18

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.15

3 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.6

4 years ago