mirror of
https://github.com/TxtDot/dalet.git
synced 2024-12-25 20:23:44 +03:00
doc: change table design add table primary column tag
This commit is contained in:
parent
aacc7e5384
commit
b9beffa965
2 changed files with 61 additions and 25 deletions
34
README.md
34
README.md
|
@ -101,19 +101,23 @@ row: {
|
|||
}
|
||||
}
|
||||
|
||||
# "|" is delimeter for text without tags.
|
||||
# Element | Description == tcol: {
|
||||
# Element
|
||||
# Description
|
||||
# }
|
||||
table: {
|
||||
Element | Description
|
||||
h | Heading
|
||||
p | Paragraph
|
||||
img | Image
|
||||
link | Link
|
||||
btn | Button
|
||||
ul | Unordered list
|
||||
br | Line break
|
||||
}
|
||||
# Table has custom format if text used
|
||||
# +< cells > - primary column
|
||||
# < cells > - secondary column
|
||||
# < Element | Description > - converts to
|
||||
# tcol: {
|
||||
# Element
|
||||
# Description
|
||||
# }
|
||||
table: (
|
||||
+< Element | Description >
|
||||
< h | Heading >
|
||||
< p | Paragraph >
|
||||
< img | Image >
|
||||
< link | Link >
|
||||
< btn | Button >
|
||||
< ul | Unordered list >
|
||||
< br | Line break >
|
||||
+< quantity | 7 >
|
||||
)
|
||||
```
|
||||
|
|
|
@ -318,22 +318,22 @@ img[/dalet.png]
|
|||
|
||||
## 12. Table
|
||||
|
||||
| Property | Description |
|
||||
| -------- | ----------- |
|
||||
| name | table |
|
||||
| id | 12 |
|
||||
| body | tcol[] |
|
||||
| argument | no |
|
||||
| Property | Description |
|
||||
| -------- | --------------------------------- |
|
||||
| name | table |
|
||||
| id | 12 |
|
||||
| body | (tcol or tpcol)[] or table-string |
|
||||
| argument | no |
|
||||
|
||||
Creates a table.
|
||||
|
||||
**Daleth example**:
|
||||
|
||||
```yaml
|
||||
```txt
|
||||
table: {
|
||||
Name | Age
|
||||
Elon | 53,
|
||||
}
|
||||
Name | Age
|
||||
Elon | 53,
|
||||
}
|
||||
```
|
||||
|
||||
**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"],
|
||||
],
|
||||
]
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue