doc: change table design add table primary column tag

This commit is contained in:
Artemy Egorov 2024-07-23 21:16:07 +03:00
parent aacc7e5384
commit b9beffa965
2 changed files with 61 additions and 25 deletions

View file

@ -101,19 +101,23 @@ row: {
} }
} }
# "|" is delimeter for text without tags. # Table has custom format if text used
# Element | Description == tcol: { # +< cells > - primary column
# Element # < cells > - secondary column
# Description # < Element | Description > - converts to
# } # tcol: {
table: { # Element
Element | Description # Description
h | Heading # }
p | Paragraph table: (
img | Image +< Element | Description >
link | Link < h | Heading >
btn | Button < p | Paragraph >
ul | Unordered list < img | Image >
br | Line break < link | Link >
} < btn | Button >
< ul | Unordered list >
< br | Line break >
+< quantity | 7 >
)
``` ```

View file

@ -318,22 +318,22 @@ img[/dalet.png]
## 12. Table ## 12. Table
| Property | Description | | Property | Description |
| -------- | ----------- | | -------- | --------------------------------- |
| name | table | | name | table |
| id | 12 | | id | 12 |
| body | tcol[] | | body | (tcol or tpcol)[] or table-string |
| argument | no | | argument | no |
Creates a table. Creates a table.
**Daleth example**: **Daleth example**:
```yaml ```txt
table: { table: {
Name | Age Name | Age
Elon | 53, Elon | 53,
} }
``` ```
**Daletl example (json5 representation)**: **Daletl example (json5 representation)**:
@ -391,3 +391,35 @@ tcol: {
], ],
] ]
``` ```
## 14. Table Primary Column
| Property | Description |
| -------- | ----------- |
| name | tpcol |
| id | 14 |
| body | tags |
| argument | no |
Like table column, but with primary background.
**Daleth example**:
```txt
tpcol: {
Name
Age
}
```
**Daletl example (json5 representation)**:
```json5
[
14,
[
[0, "Name"],
[0, "Age"],
],
]
```