瀏覽代碼

added callbacks to docstring

Natan 1 年之前
父節點
當前提交
9b41dc9e15
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      nicegui/elements/jsoneditor.py

+ 2 - 0
nicegui/elements/jsoneditor.py

@@ -15,6 +15,8 @@ class JSONEditor(Element, component='jsoneditor.js', exposed_libraries=['lib/van
         After data has changed, call the `update` method to refresh the editor.
 
         :param properties: dictionary of JSONEditor properties
+        :param on_select: callback function that is called when the editor's content has been selected
+        :param on_change: callback function that is called when the editor's content has changed
         """
         super().__init__()
         self._props['properties'] = properties