1
0
Natan 1 жил өмнө
parent
commit
6f1ae33b91

+ 1 - 1
main.py

@@ -402,7 +402,7 @@ def documentation_page() -> None:
 
 @ui.page('/documentation/{name}')
 async def documentation_page_more(name: str, client: Client) -> None:
-    if name in {'ag_grid', 'e_chart', 'j_s_o_neditor'}:
+    if name in {'ag_grid', 'e_chart', 'j_s_o_n_editor'}:
         name = name.replace('_', '')  # NOTE: "AG Grid" leads to anchor name "ag_grid", but class is `ui.aggrid`
     module = importlib.import_module(f'website.more_documentation.{name}_documentation')
     more = getattr(module, 'more', None)

+ 1 - 1
nicegui/elements/jsoneditor.py

@@ -5,7 +5,7 @@ from ..events import (GenericEventArguments, JSONEditorOnChangeEventArguments, J
                       JSONEditorOnSelectTextEventArguments, handle_event)
 
 
-class JSONeditor(Element, component='jsoneditor.js', exposed_libraries=['lib/vanilla-jsoneditor/index.js']):
+class JSONEditor(Element, component='jsoneditor.js', exposed_libraries=['lib/vanilla-jsoneditor/index.js']):
     def __init__(
             self, properties: Dict, on_select: Optional[Callable] = None, on_change: Optional[Callable] = None) -> None:
         """JSONEditor

+ 1 - 1
nicegui/ui.py

@@ -122,7 +122,7 @@ from .elements.image import Image as image
 from .elements.input import Input as input
 from .elements.interactive_image import InteractiveImage as interactive_image
 from .elements.joystick import Joystick as joystick
-from .elements.jsoneditor import JSONeditor as jsoneditor
+from .elements.jsoneditor import JSONEditor as jsoneditor
 from .elements.keyboard import Keyboard as keyboard
 from .elements.knob import Knob as knob
 from .elements.label import Label as label