@@ -23,7 +23,6 @@ class JsonEditor(Element, component='json_editor.js', exposed_libraries=['lib/va
"""
super().__init__()
self._props['properties'] = properties
- self._classes = ['nicegui-json-editor']
if on_select:
def handle_on_select(e: GenericEventArguments) -> None:
@@ -68,10 +68,6 @@
width: 100%;
height: 16rem;
}
-.nicegui-json-editor {
- width: 100%;
- height: 16rem;
-}
.nicegui-scroll-area {
@@ -14,4 +14,4 @@ def main_demo() -> None:
ui.json_editor({'content': {'json': json}},
on_select=lambda e: ui.notify(f'Select: {e}'),
- on_change=lambda e: ui.notify(f'Change: {e}')).classes('h-80')
+ on_change=lambda e: ui.notify(f'Change: {e}'))