We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa7fcd commit 9bcaa38Copy full SHA for 9bcaa38
examples/pydantic_monaco/view.py
@@ -46,6 +46,9 @@ def create_ui(self) -> None:
46
with VBoxLayout(stretch=True):
47
# If a component doesn't support the v_model parameter, as with the Monaco editor, then we can
48
# set the initial value and listen to the events manually.
49
+ # Unlike our InputField component, code.Editor doesn't support a v_model. In this case, we can
50
+ # use model_value to set the initial value of the component and then listen to the input event
51
+ # manually.
52
code.Editor(
53
ref="monaco_container",
54
model_value=("data",),
0 commit comments