Integrating formula editor
This commit is contained in:
@@ -33,6 +33,7 @@ class DslEditorConf:
|
||||
placeholder: str = ""
|
||||
readonly: bool = False
|
||||
engine_id: str = None # id of the DSL engine to use for autocompletion
|
||||
save_button: bool = True
|
||||
|
||||
|
||||
class DslEditorState(DbObject):
|
||||
@@ -184,6 +185,8 @@ class DslEditor(MultipleInstance):
|
||||
return Script(f"initDslEditor({config_json});")
|
||||
|
||||
def _mk_auto_save(self):
|
||||
if not self.conf.save_button:
|
||||
return None
|
||||
return Div(
|
||||
Label(
|
||||
mk.mk(
|
||||
|
||||
Reference in New Issue
Block a user