aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorArtem Vasiliev <artem.job@gmail.com>2016-10-20 00:00:17 +0300
committerArtem Vasiliev <artem.job@gmail.com>2016-10-20 00:00:17 +0300
commitb86fe1d16a4ad06951bba9ac2990ec3e4563637a (patch)
tree16cdd2ca2bb19b0a898b2b90b313f96a86f8fe79 /README.md
parent9c01af6e34f7d63843bacfcffb8c7ad45d6866cf (diff)
downloadtime-picker-b86fe1d16a4ad06951bba9ac2990ec3e4563637a.tar.gz
time-picker-b86fe1d16a4ad06951bba9ac2990ec3e4563637a.tar.zst
time-picker-b86fe1d16a4ad06951bba9ac2990ec3e4563637a.zip
feat: 'addon' property support
..to be able to render something like OK button to timepicker: ``` <TimePicker allowEmpty={false} addon={panel => { return ( <div className="row"> <a role="button" className="btn btn-sm btn-default" onClick={() => panel.close()}> {__('OK')} </a> </div> ) }} /> ```
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3ae31aa..5ec960c 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,7 @@ API
67| disabledSeconds | Function | disabled second options | | 67| disabledSeconds | Function | disabled second options | |
68| hideDisabledOptions | Boolean | whether hide disabled options | | 68| hideDisabledOptions | Boolean | whether hide disabled options | |
69| onChange | Function | null | called when select a different value | 69| onChange | Function | null | called when select a different value |
70| addon | Function | nothing | called from timepicker panel to render some addon to its bottom, like an OK button. Receives panel instance as parameter, to be able to close it like `panel.close()`.|
70| placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | 71| placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |
71| transitionName | String | '' | | 72| transitionName | String | '' | |
72 73