mirror of
https://github.com/infeng/react-viewer.git
synced 2025-12-08 17:36:40 +00:00
Update README.md
This commit is contained in:
parent
524fb3ba65
commit
eaf2cbf074
@ -67,6 +67,7 @@ class App extends React.Component<any, any> {
|
||||
| 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<any, any> {
|
||||
| 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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user