From 9095599de8ec90c0c2bb10fcb2c11e55271f2580 Mon Sep 17 00:00:00 2001 From: Fedor Zaitsev Date: Fri, 28 Feb 2020 11:27:40 -0800 Subject: [PATCH] Updated README Added explanation for missing parameters (background, title and image) --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index e985d68..7cff707 100644 --- a/README.md +++ b/README.md @@ -375,6 +375,31 @@ If you want to longPress for some operations, it is similar to the configuration "bordered": "false" // "true" or "false" ``` +- `background` allow to specify you button background color + +```js + "background": "#FF0000", +``` +by using background with color "#000000" and bordered == false you can create button without gray background but with background when the button is pressed + +- `title` specify button title + +```js + "title": "hello" +``` + +- `image` specify button icon + +```js + "image": { + //Can be either of those + "base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdB...." + //or + "filePath": "~/img.png" + } +``` + + ### Roadmap - [x] Create the first prototype with TouchBar in Storyboard