From 7e0db70fabc8715a881540b055eacfa5c7f73f49 Mon Sep 17 00:00:00 2001 From: Fedor Zaytsev Date: Fri, 28 Feb 2020 11:35:09 -0800 Subject: [PATCH] Updated README (#274) 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