You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/migration_guides.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ The ``DOMWidgetView.processPhosphorMessage`` method has been renamed ``DOMWidget
117
117
+ }
118
118
```
119
119
120
-
I you're dropping ipywidgets 7.x support, you can simply rename the `processPhosphorMessage` method into `processLuminoMessage`.
120
+
If you're dropping ipywidgets 7.x support, you can simply rename the `processPhosphorMessage` method into `processLuminoMessage`.
121
121
122
122
#### Widget manager import
123
123
@@ -128,7 +128,7 @@ As mentioned before, if you depend on the ``ManagerBase`` class, you will **eith
128
128
+ import { ManagerBase } from '@jupyter-widgets/base-manager';
129
129
```
130
130
131
-
**or**, siwtch to using the new `IWidgetManager` interface in the `base` package:
131
+
**or**, switch to using the new `IWidgetManager` interface in the `base` package:
132
132
133
133
```diff
134
134
- import { ManagerBase } from '@jupyter-widgets/base';
@@ -153,7 +153,7 @@ export async function myDeserializer(
153
153
154
154
#### Backbone extend
155
155
156
-
The version of backbone that ipywidgets depend on has changed from 1.2.3 to 1.4.0. If you were extending the base widget model with `var CustomWidgetModel = Widget.extend({ ... });` you will need to update the class definition using the ES6 notation:
156
+
The version of [Backbone.js](https://backbonejs.org/) that ipywidgets depends on has changed from 1.2.3 to 1.4.0. If you were extending the base widget model with `var CustomWidgetModel = Widget.extend({ ... });` you will need to update the class definition using the ES6 notation:
157
157
158
158
```diff
159
159
- var CustomWidgetModel = Widget.extend({
@@ -166,6 +166,18 @@ The version of backbone that ipywidgets depend on has changed from 1.2.3 to 1.4.
166
166
167
167
Note: If you were relying on setting certain instance attributes via the `extend` method, you might now need override the `preinitialize` method in order for their values to be set in time.
168
168
169
+
#### Custom tag names
170
+
171
+
If you were changing the base HTML tag by defining the `tagName` property, this can now be done in the `preinitialize` method (see https://github.com/jupyter-widgets/ipywidgets/commit/a342e0dbc7c779bb668e5a21c097d7cec9a6ac44 for example changes in core widgets):
0 commit comments