gui.layout.get_macro_button_input_pair
Create a macro button and input pair for a given macro configuration.
This function generates a Dash HTML Div containing a button and an input field for a specified macro. The button is labeled with the macro’s name, and the input field is pre-filled with a default JSON value if provided in the macro configuration.
Parameters
Name | Type | Description | Default |
---|---|---|---|
mc | dict | A dictionary containing the macro configuration. The dictionary should have the following structure: { “name”: str, “default_json”: dict | None } | required |
Returns
Name | Type | Description |
---|---|---|
html.Div | A Dash HTML Div containing a button and an input field for the macro. |