From eaf2cbf07481f11e761f0fd5c3451c73789ff6e2 Mon Sep 17 00:00:00 2001 From: infeng Date: Tue, 24 Apr 2018 16:14:56 +0800 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 04e9a63..978b930 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ class App extends React.Component { | noImgDetails | boolean | false | to not render image detail (WxH) | false | | noFooter | boolean | false | to not render the entire footer | false | | changeable | boolean | true | wheather to show change button | false | +| customToolbar | (defaultToolbarConfigs: [ToolbarConfig](#ToolbarConfig)[]) => ToolbarConfig[] | - | customer toolbar | false | ### ImageDecorator @@ -76,6 +77,14 @@ class App extends React.Component { | alt | string | - | image description | false | | downloadUrl | string | - | image downlaod url | false | +### ToolbarConfig + +| props | type | default | description | required | +|-------------|--------------|---------|-----------------------------|----------| +| key | string | - | tool key | true | +| render | React.ReactNode | - | tool render | false | +| onClick | string | - | callback function when action is clicked | false | + ## Keyboard support - `Esc`: Close viewer.