Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit 43e6a8d

Browse files
committed
[APIs] Added new props for DocsPageAPI and PagesGpoupAPI.
1 parent e6f03f2 commit 43e6a8d

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/locale/EN.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
"searchDescription": "Description text, displayed in search result if page match search requirements.",
155155
"noGenerateAutoSearch": "If true, page will not generate search items from pages automatically.",
156156
"noAutoMenu": "If true, page will not participate in auto menu generation.",
157+
"order": "As lower order as higher will be displayed menu item.",
157158
"children": "Children of an element."
158159
},
159160
"css": {
@@ -181,6 +182,8 @@
181182
"noTag": "If true and name prop is defined - header with name will not generate tag for content tab.",
182183
"paperContainer": "If true - demo content will be wrapped in Paper component.",
183184
"actions": "Array of additional actions. The actions will be displayed in the dropdown menu when you click the ExpandMore icon button.",
185+
"p": "Padding of demo block in theme.spacing units.",
186+
"m": "Margin of demo block in theme.spacing units.",
184187
"children": "Children of an element. Will be placed in demo block."
185188
},
186189
"css": {
@@ -221,6 +224,7 @@
221224
"props": {
222225
"name": "Name of the group. Will be displayed on button in menu.",
223226
"getData": "Callback, provided to get group data without context usage.",
227+
"order": "As lower order as higher will be displayed menu item.",
224228
"children": "Children of an element."
225229
},
226230
"css": {}

src/pages/APIs/DemoWithCodeAPI/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export default function DemoWithCodeAPI() {
2929
{name: "noTag", type: "boolean", default: "false", description: locale.props.noTag},
3030
{name: "paperContainer", type: "boolean", default: "false", description: locale.props.paperContainer},
3131
{name: "actions", type: "DemoCodeAction[]", default: "", description: locale.props.actions},
32+
{name: "p", type: "number", default: "0", description: locale.props.p},
33+
{name: "m", type: "number", default: "0", description: locale.props.m},
3234
{name: "children", type: "node", default: "", description: locale.props.children},
3335
]}
3436
css={[

src/pages/APIs/DocsPageAPI/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function DocsPageAPI() {
2727
{name: "searchDescription", type: "string", default: "", description: locale.props.searchDescription},
2828
{name: "noGenerateAutoSearch", type: "boolean", default: "false", description: locale.props.noGenerateAutoSearch},
2929
{name: "noAutoMenu", type: "boolean", default: "false", description: locale.props.noAutoMenu},
30+
{name: "order", type: "number", default: "", description: locale.props.code},
3031
{name: "children", type: "node", default: "", description: locale.props.children},
3132
]}
3233
css={[

src/pages/APIs/PagesGroupAPI/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default function PagesGroupAPI() {
2424
properties={[
2525
{name: "name", type: "string", default: "", description: locale.props.name},
2626
{name: "getData", type: "function(data: PagesGroupData): void", default: "", description: locale.props.code},
27+
{name: "order", type: "number", default: "", description: locale.props.code},
2728
{name: "children", type: "node", default: "", description: locale.props.children},
2829
]}
2930
enableCss={false}

0 commit comments

Comments
 (0)