Skip to content

Commit 1f871ab

Browse files
fix deprecation
1 parent 6986f30 commit 1f871ab

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

panel_chemistry/bokeh_extensions/jsme_editor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export class JSMEEditor extends HTMLBox {
5252
static init_JSMEEditor(): void {
5353
this.prototype.default_view = JSMEEditorView;
5454

55-
this.define<JSMEEditor.Props>({
56-
object: [p.String, "<button style='width:100%'>Click Me</button>"],
57-
clicks: [p.Int, 0],
58-
})
55+
this.define<JSMEEditor.Props>(({Int, String}) => ({
56+
object: [String, "<button style='width:100%'>Click Me</button>"],
57+
clicks: [Int, 0],
58+
}))
5959
}
6060
}

tests/tests/test_jsme_editory.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ def test_jsme_editor_app():
1313
editor = JSMEEditor(height=250)
1414
component = pn.Column(editor, editor.param.clicks)
1515
return pn.template.FastListTemplate(
16-
site="Panel Chemistry v0.0.3",
17-
title="Dummy JSME Editor",
18-
main=[component]
16+
site="Panel Chemistry v0.0.3", title="Dummy JSME Editor", main=[component]
1917
)
2018

2119

0 commit comments

Comments
 (0)