6.0.11 • Published 5 years ago
@ghd/core-ui v6.0.11
Angular Core UI
This package contains contains common UI components
Using this package:
Go to your Angular 6.X project and run this command:
> npm install @ghd/core-ui --save
import { GHDCoreUIModule } from '@ghd/core-ui';
// import UIModule to your base app.module or a shared module accross your app
@NgModule({
imports: [
GHDCoreUIModule
]
})
Package Exports:
Dialog Component:ng b
<ghd-dialog-confirm [opened]="true" [title]="'Please confirm'" [message]="'Are you sure?'"></ghd-dialog-confirm>
Toast/Alert/Notification Component:
Arguments:
message: (string) - REQUIRED: Your custom string message
timeout: (number) - OPTIONAL: Timeout in milliseconds to display alert message (default: 3000 milliseconds)
// import GHDAlertModule to your base app.module or a shared module accross your app
import { GHDAlertModule } from '@ghd/core-ui';
@NgModule({
imports: [
GHDAlertModule.forRoot()
]
})
// On your component, import the Alert Service
import { GHDAlertService } from '@ghd/core-ui';
// and inject it
...
export class MyComponent {
constructor(private alertService: GHDAlertService) {}
// then use it!
myFunction() {
this.alertService.success('Successfully Added Form', 5000);
...
this.alertService.error('Error Added Form', 10000);
...
this.alertService.warn('Warning, please resolve immediately');
}
}
System Requirements (optional: for building this package):
- Node v8.X.X (might as well use current stable v8.11.1 as of the current day of writing)
- npm v5.6.0
- rollup v0.58.2
To know more about packaging with npm and angular click here
6.0.11
5 years ago
6.0.9
5 years ago
7.0.2
5 years ago
7.0.1
5 years ago
6.0.10
5 years ago
0.0.22
5 years ago
0.0.21
5 years ago
6.0.8
6 years ago
6.0.7
6 years ago
6.0.6
6 years ago
6.0.5
6 years ago
6.0.4
6 years ago
6.0.3
6 years ago
6.0.2
6 years ago
6.0.1
6 years ago
6.0.0
6 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago