diff --git a/README.md b/README.md index 106ab6c..9e7d23b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ let snackbar = new SnackBar(); /// Show a simple snackbar with no actions (Except close on iOS, limitation of the Cocoapod) public showSimple() { - snackbar.simple('Snackbar').then((args) => { + snackbar.simple('Snackbar', 'red', '#fff').then((args) => { this.set('jsonResult', JSON.stringify(args)); }) } @@ -58,8 +58,8 @@ public showAction() { ### API -Show a simple SnackBar -- **simple(snackText: string): Promise** +Show a simple SnackBar (color args will only work on Android) +- **simple(snackText: string, textColor?: string, backgroundColor?: string): Promise** Show a SnackBar with Action. - **action(options: SnackBarOptions): Promise**