Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita67ec87

Browse files
committed
Updated Readme for new features
1 parentf200a97 commita67ec87

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

‎README.rst‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,35 @@ you can see js/demo.js in this repo for an example or use it live at the
2828
output.appendChild(node);
2929

3030

31+
Additional options parameter can be supplied
32+
33+
::
34+
var input = {
35+
"url" : [
36+
"www.google.com",
37+
"www.google.com",
38+
{
39+
"x" : "x-direction",
40+
"y" : "y-direction",
41+
"url" : "www.google.com"
42+
}
43+
]
44+
};
45+
46+
var node = JsonHuman.format(input, {
47+
// Show or hide Array-Indices in the output
48+
showArrayIndex: true,
49+
50+
// Hyperlinks Option
51+
// Enable <a> tag in the output html based on object keys
52+
// Supports only strings and arrays
53+
hyperlinks : {
54+
enable : true,
55+
keys: ['url'], // Keys which will be output as links
56+
target : '_blank' // 'target' attribute of a
57+
}
58+
});
59+
3160
To install it, if you're using `Bower<https://github.com/bower/bower>`_ you
3261
can just run::
3362

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp