Skip to content

Commit 9d5a482

Browse files
author
Alan Fleming
committed
Update the widget model specification for 'Children'.
1 parent 234752c commit 9d5a482

File tree

3 files changed

+15
-42
lines changed

3 files changed

+15
-42
lines changed

docs/source/dev_install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ To update the widget model specification with changes, do something like this in
9090
```
9191
python ./packages/schema/generate-spec.py -f json-pretty packages/schema/jupyterwidgetmodels.latest.json
9292
python ./packages/schema/generate-spec.py -f markdown packages/schema/jupyterwidgetmodels.latest.md
93+
jlpm prettier
9394
```
9495
9596
## Releasing new versions

packages/schema/jupyterwidgetmodels.latest.json

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,8 @@
441441
{
442442
"default": [],
443443
"help": "List of widget children",
444-
"items": {
445-
"type": "reference",
446-
"widget": "Widget"
447-
},
448444
"name": "children",
449-
"type": "array"
445+
"type": "Children"
450446
},
451447
{
452448
"default": "reference to new instance",
@@ -935,12 +931,8 @@
935931
{
936932
"default": [],
937933
"help": "List of widget children",
938-
"items": {
939-
"type": "reference",
940-
"widget": "Widget"
941-
},
942934
"name": "children",
943-
"type": "array"
935+
"type": "Children"
944936
},
945937
{
946938
"default": "reference to new instance",
@@ -3753,12 +3745,8 @@
37533745
{
37543746
"default": [],
37553747
"help": "List of widget children",
3756-
"items": {
3757-
"type": "reference",
3758-
"widget": "Widget"
3759-
},
37603748
"name": "children",
3761-
"type": "array"
3749+
"type": "Children"
37623750
},
37633751
{
37643752
"default": "reference to new instance",
@@ -3850,12 +3838,8 @@
38503838
{
38513839
"default": [],
38523840
"help": "List of widget children",
3853-
"items": {
3854-
"type": "reference",
3855-
"widget": "Widget"
3856-
},
38573841
"name": "children",
3858-
"type": "array"
3842+
"type": "Children"
38593843
},
38603844
{
38613845
"default": "reference to new instance",
@@ -6643,12 +6627,8 @@
66436627
{
66446628
"default": [],
66456629
"help": "List of widget children",
6646-
"items": {
6647-
"type": "reference",
6648-
"widget": "Widget"
6649-
},
66506630
"name": "children",
6651-
"type": "array"
6631+
"type": "Children"
66526632
},
66536633
{
66546634
"default": "reference to new instance",
@@ -6756,12 +6736,8 @@
67566736
{
67576737
"default": [],
67586738
"help": "List of widget children",
6759-
"items": {
6760-
"type": "reference",
6761-
"widget": "Widget"
6762-
},
67636739
"name": "children",
6764-
"type": "array"
6740+
"type": "Children"
67656741
},
67666742
{
67676743
"default": "reference to new instance",
@@ -7914,12 +7890,8 @@
79147890
{
79157891
"default": [],
79167892
"help": "List of widget children",
7917-
"items": {
7918-
"type": "reference",
7919-
"widget": "Widget"
7920-
},
79217893
"name": "children",
7922-
"type": "array"
7894+
"type": "Children"
79237895
},
79247896
{
79257897
"default": "reference to new instance",

packages/schema/jupyterwidgetmodels.latest.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ that the widget is registered with.
7676
| `_view_module_version` | string | `'2.0.0'` |
7777
| `_view_name` | string | `'AccordionView'` |
7878
| `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. |
79-
| `children` | array of reference to Widget widget | `[]` | List of widget children |
79+
| `children` | Children | `[]` | List of widget children |
8080
| `layout` | reference to Layout widget | reference to new instance |
8181
| `selected_index` | `null` or number (integer) | `null` | The index of the selected page. This is either an integer selecting a particular sub-widget, or None to have no widgets selected. |
8282
| `tabbable` | `null` or boolean | `null` | Is widget tabbable? |
@@ -163,7 +163,7 @@ that the widget is registered with.
163163
| `_view_module_version` | string | `'2.0.0'` |
164164
| `_view_name` | string | `'BoxView'` |
165165
| `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. |
166-
| `children` | array of reference to Widget widget | `[]` | List of widget children |
166+
| `children` | Children | `[]` | List of widget children |
167167
| `layout` | reference to Layout widget | reference to new instance |
168168
| `tabbable` | `null` or boolean | `null` | Is widget tabbable? |
169169
| `tooltip` | `null` or string | `null` | A tooltip caption. |
@@ -663,7 +663,7 @@ that the widget is registered with.
663663
| `_view_module_version` | string | `'2.0.0'` |
664664
| `_view_name` | string | `'GridBoxView'` |
665665
| `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. |
666-
| `children` | array of reference to Widget widget | `[]` | List of widget children |
666+
| `children` | Children | `[]` | List of widget children |
667667
| `layout` | reference to Layout widget | reference to new instance |
668668
| `tabbable` | `null` or boolean | `null` | Is widget tabbable? |
669669
| `tooltip` | `null` or string | `null` | A tooltip caption. |
@@ -680,7 +680,7 @@ that the widget is registered with.
680680
| `_view_module_version` | string | `'2.0.0'` |
681681
| `_view_name` | string | `'HBoxView'` |
682682
| `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. |
683-
| `children` | array of reference to Widget widget | `[]` | List of widget children |
683+
| `children` | Children | `[]` | List of widget children |
684684
| `layout` | reference to Layout widget | reference to new instance |
685685
| `tabbable` | `null` or boolean | `null` | Is widget tabbable? |
686686
| `tooltip` | `null` or string | `null` | A tooltip caption. |
@@ -1179,7 +1179,7 @@ that the widget is registered with.
11791179
| `_view_module_version` | string | `'2.0.0'` |
11801180
| `_view_name` | string | `'StackView'` |
11811181
| `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. |
1182-
| `children` | array of reference to Widget widget | `[]` | List of widget children |
1182+
| `children` | Children | `[]` | List of widget children |
11831183
| `layout` | reference to Layout widget | reference to new instance |
11841184
| `selected_index` | `null` or number (integer) | `null` | The index of the selected page. This is either an integer selecting a particular sub-widget, or None to have no widgets selected. |
11851185
| `tabbable` | `null` or boolean | `null` | Is widget tabbable? |
@@ -1198,7 +1198,7 @@ that the widget is registered with.
11981198
| `_view_module_version` | string | `'2.0.0'` |
11991199
| `_view_name` | string | `'TabView'` |
12001200
| `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. |
1201-
| `children` | array of reference to Widget widget | `[]` | List of widget children |
1201+
| `children` | Children | `[]` | List of widget children |
12021202
| `layout` | reference to Layout widget | reference to new instance |
12031203
| `selected_index` | `null` or number (integer) | `null` | The index of the selected page. This is either an integer selecting a particular sub-widget, or None to have no widgets selected. |
12041204
| `tabbable` | `null` or boolean | `null` | Is widget tabbable? |
@@ -1402,7 +1402,7 @@ that the widget is registered with.
14021402
| `_view_module_version` | string | `'2.0.0'` |
14031403
| `_view_name` | string | `'VBoxView'` |
14041404
| `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. |
1405-
| `children` | array of reference to Widget widget | `[]` | List of widget children |
1405+
| `children` | Children | `[]` | List of widget children |
14061406
| `layout` | reference to Layout widget | reference to new instance |
14071407
| `tabbable` | `null` or boolean | `null` | Is widget tabbable? |
14081408
| `tooltip` | `null` or string | `null` | A tooltip caption. |

0 commit comments

Comments
 (0)