ng-custom-button
v0.0.2
Published
Button lib for Angular 7
Readme
NgCustomButton
A button with custom properties such as color, size, titling and function call, works in Angular 4/5/6/7.
Installation
npm install ng-custom-button --saveUsage
// Import library module
import { NgCustomButtonModule } from 'ngx-spinner';
@NgModule({
imports: [
// ...
NgCustomButtonModule
]
})
export class AppModule { }Now use in your template:
<ng-custom-button></ng-custom-button>NgCustomButton Component
<ng-custom-button
[colorBtn]="'primary'"
[sizeBtn]="'medium'"
[title]="'NgCustomButton'"
(onClickBtn)="handleClickBtn()"
></ng-custom-button>- [colorBtn]: color of button, the following colors are accepted: primary, secondary, success, danger, warning, info, light and dark.
- [sizeBtn]: size of button, the following sizes are accepted: small, medium, and large.
- [title]: button title.
- (onClickBtn): output function without parameters.
