Skip to content

Commit b33d559

Browse files
committed
docs: boneparams
1 parent 0fa2635 commit b33d559

File tree

5 files changed

+66
-9
lines changed

5 files changed

+66
-9
lines changed

docs/.vitepress/cache/deps/_metadata.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"hash": "216e4a8e",
2+
"hash": "711eafb8",
33
"configHash": "b1d0d4c4",
4-
"lockfileHash": "69cf18de",
5-
"browserHash": "ece5baa6",
4+
"lockfileHash": "a734c7a2",
5+
"browserHash": "4e60e35d",
66
"optimized": {
77
"vue": {
88
"src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
99
"file": "vue.js",
10-
"fileHash": "ddb93633",
10+
"fileHash": "55771715",
1111
"needsInterop": false
1212
},
1313
"vitepress > @vue/devtools-api": {
1414
"src": "../../../../node_modules/vitepress/node_modules/@vue/devtools-api/dist/index.js",
1515
"file": "vitepress___@vue_devtools-api.js",
16-
"fileHash": "20761289",
16+
"fileHash": "95505add",
1717
"needsInterop": false
1818
},
1919
"vitepress > @vueuse/core": {
2020
"src": "../../../../node_modules/@vueuse/core/index.mjs",
2121
"file": "vitepress___@vueuse_core.js",
22-
"fileHash": "01c5c635",
22+
"fileHash": "ca0f2f1b",
2323
"needsInterop": false
2424
}
2525
},

docs/.vitepress/config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default defineConfig({
1212
nav: [
1313
{ text: "Home", link: "/" },
1414
{ text: "AdminInfo", link: "/admininfo/" },
15+
{ text: "BoneParameters", link: "/bones/parameters" },
1516
],
1617

1718
/*sidebar: [
@@ -37,6 +38,15 @@ export default defineConfig({
3738
],
3839
},
3940
],
41+
"/bones/": [
42+
{
43+
text: "Bones",
44+
items: [
45+
{ text: "Overview", link: "/bones/" },
46+
{ text: "Parameters", link: "/bones/parameters" },
47+
],
48+
},
49+
],
4050
},
4151
aside: false,
4252

docs/bones/index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Bones
3+
---
4+
5+
# Bones
6+
7+
Here is your optimized **IT Business English** translation suitable for documentation on an open-source platform like GitHub:
8+
9+
---
10+
11+
The various *bones* defined by the ViUR Core are represented in the admin interface through corresponding widgets. These widgets are encapsulated by three different wrapper types:
12+
13+
* **Multiple**: Extends the widget with a drag-and-drop handle and a remove button.
14+
* **Language**: Wraps the widget in a tabbed navigation interface, where each language is represented by its own tab.
15+
* **Nested**: `usingSkel` and `recordBone` instances are wrapped in a nested wrapper that provides its own dedicated `viforms` instance.
16+
17+
In addition to these standard wrappers, which apply to all bones, some bones support specialized widgets that can be selected via the `type_suffix` option.
18+
19+
---
20+
21+
22+
| BoneTyp | type_suffix | Description |
23+
| --- | --- | --- |
24+
| boolean | choose | uses radio buttons |
25+
| boolean | select | uses a Dropdown |
26+
| relational | select | uses a Dropdown |
27+
| select | choose | uses radio buttons or checkboxes(multiple) |

docs/bones/parameters.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Bone Parameters
3+
---
4+
5+
# Bone Parameters
6+
Bone parameters are used to pass instructions to the corresponding widgets and *viforms* instances.
7+
Not all parameters are supported by every widget.
8+
9+
| Parameter | Value | Description |
10+
| --- | --- | --- |
11+
| **tooltip** | `"Test Tooltip"` | Displays additional contextual information on the label, such as input guidance or helper text. |
12+
| **category** | `"Contact"` | Groups bones under the specified category name. |
13+
| **actions** | `["describe_image", "translate"]` | Enables AI-powered actions, such as generating descriptions for *ImageBones* or translating multilingual *String* or *TextBones*. |
14+
| **categoryDefaultName** | `"$(rel.name)"` | Sets the default category name for *Relational* and *RecordBones*. Format strings are supported. |
15+
| **collapsedCategories** | `["Contact"]` | Defines a list of categories that should be collapsed when the form is opened. `"*"` collapses all categories. |
16+
| **evaluate** | *Logics* | A Logics rule used to compute a value based on user input. |
17+
| **visibleIf** | *Logics* | A Logics rule that hides the widget when the rule evaluates to `false`. |
18+
| **requiredIf** | *Logics* | A Logics rule that overrides the bone’s `required` flag. |
19+
| **readonlyIf** | *Logics* | A Logics rule that overrides the bone’s `readonly` flag. |
20+

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ hero:
1313
- theme: brand
1414
text: Admininfo
1515
link: /admininfo/
16-
#- theme: alt
17-
# text: API Examples
18-
# link: /api-examples
16+
- theme: alt
17+
text: Bone Parameters
18+
link: /bones/parameters
1919

2020
#features:
2121
# - title: Feature A

0 commit comments

Comments
 (0)