File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 8
8
/build
9
9
10
10
.DS_Store
11
+ npm-debug.log
11
12
/node_modules /*
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ import React from "react";
2
2
import SignaturePad from "./src/index" ;
3
3
4
4
React . render (
5
- < SignaturePad /> ,
5
+ < SignaturePad clearButton = "true" /> ,
6
6
document . body
7
7
)
Original file line number Diff line number Diff line change @@ -295,6 +295,11 @@ export default class SignaturePad extends React.Component {
295
295
< div className = "m-signature-pad--body" >
296
296
< canvas ref = "cv" > </ canvas >
297
297
</ div >
298
+ { this . props . clearButton &&
299
+ < div className = "m-signature-pad--footer" >
300
+ < button className = "btn btn-default button clear" onClick = { this . clear . bind ( this ) } > Clear</ button >
301
+ </ div >
302
+ }
298
303
</ div >
299
304
) ;
300
305
}
You can’t perform that action at this time.
0 commit comments