Skip to content

Commit b12c01c

Browse files
committed
Updated readme
1 parent 6ae60b8 commit b12c01c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,22 @@ From your command prompt/termial go to your app's root folder and execute:
2020
</Page>
2121
```
2222

23+
```JS
24+
var frame = require("ui/frame");
25+
function getDrawing(args) {
26+
// get reference to the drawing pad
27+
var pad = frame.topmost().currentPage.getViewById("drawingPad");
28+
// then access the 'drawing' property of the signaturepad;
29+
var drawingImage = pad.drawing;
30+
}
31+
exports.getDrawing = getDrawing;
32+
```
33+
2334
## Attributes
2435
**penColor - (color string)** - *optional*
2536

26-
Attribute to specify the pen(stroke) color to use.
37+
Attribute to specify the pen (stroke) color to use.
2738

2839
**penWidth - (int)** - *optional*
2940

30-
Attribute to specify the pen(stroke) width to use.
41+
Attribute to specify the pen (stroke) width to use.

0 commit comments

Comments
 (0)