1 | {
|
2 | "title": "TableCell",
|
3 | "@id": "stencila:TableCell",
|
4 | "extends": "Entity",
|
5 | "role": "secondary",
|
6 | "status": "unstable",
|
7 | "category": "prose",
|
8 | "description": "A cell within a `Table`.\n",
|
9 | "properties": {
|
10 | "type": {
|
11 | "@id": "schema:type",
|
12 | "description": "The name of the type.",
|
13 | "type": "string",
|
14 | "enum": [
|
15 | "TableCell"
|
16 | ],
|
17 | "default": "TableCell",
|
18 | "from": "Entity"
|
19 | },
|
20 | "id": {
|
21 | "@id": "schema:id",
|
22 | "description": "The identifier for this item.",
|
23 | "type": "string",
|
24 | "from": "Entity"
|
25 | },
|
26 | "meta": {
|
27 | "@id": "stencila:meta",
|
28 | "description": "Metadata associated with this item.",
|
29 | "type": "object",
|
30 | "from": "Entity"
|
31 | },
|
32 | "name": {
|
33 | "@id": "schema:name",
|
34 | "description": "The name of the cell.",
|
35 | "$comment": "Cell's have an implicit name derived from their position in the table\ne.g. `C4` for the cell in the third column and fourth row. However this name can be overridden\nwith an explicit name, e.g. `rate`.\n",
|
36 | "type": "string",
|
37 | "from": "TableCell"
|
38 | },
|
39 | "colspan": {
|
40 | "@id": "stencila:colspan",
|
41 | "description": "How many columns the cell extends.\n",
|
42 | "$comment": "Based on the HTML `colspan` attribute for [table cells](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td).",
|
43 | "type": "integer",
|
44 | "minimum": 0,
|
45 | "maximum": 1000,
|
46 | "default": 1,
|
47 | "from": "TableCell"
|
48 | },
|
49 | "cellType": {
|
50 | "@id": "stencila:cellType",
|
51 | "description": "Indicates whether the cell is a header or data.",
|
52 | "$comment": "When `header`, the cell is similar to the HTML [`<th>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th)).\nWhen `data`, the cell is similar to the HTML [`<td>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td)).\n",
|
53 | "type": "string",
|
54 | "enum": [
|
55 | "data",
|
56 | "header"
|
57 | ],
|
58 | "default": "data",
|
59 | "from": "TableCell"
|
60 | },
|
61 | "rowspan": {
|
62 | "@id": "stencila:rowspan",
|
63 | "description": "How many columns the cell extends.",
|
64 | "$comment": "Based on the HTML `rowspan` attribute for [table cells](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td).",
|
65 | "type": "integer",
|
66 | "minimum": 0,
|
67 | "maximum": 65534,
|
68 | "default": 1,
|
69 | "from": "TableCell"
|
70 | },
|
71 | "content": {
|
72 | "@id": "stencila:content",
|
73 | "description": "Contents of the table cell.",
|
74 | "type": "array",
|
75 | "items": {
|
76 | "$ref": "Node.schema.json"
|
77 | },
|
78 | "from": "TableCell",
|
79 | "isArray": true
|
80 | }
|
81 | },
|
82 | "required": [
|
83 | "type",
|
84 | "content"
|
85 | ],
|
86 | "file": "TableCell.schema.yaml",
|
87 | "children": [],
|
88 | "descendants": [],
|
89 | "$schema": "http://json-schema.org/draft-07/schema#",
|
90 | "$id": "https://schema.stenci.la/v0/TableCell.schema.json",
|
91 | "source": "https://github.com/stencila/schema/blob/master/TableCell.schema.yaml",
|
92 | "type": "object",
|
93 | "additionalProperties": false,
|
94 | "propertyAliases": {}
|
95 | }
|