ENH: Add auto_focus and pattern to form_elements/form_panel
- Sep 29, 2023
-
-
Timm Fitschen authored
-
Timm Fitschen authored
-
Moves code from customer custom scripts to webui:
Both features mentioned above are independent. They just happened to be developed simultaneously.
var form_config = {
fields: [{
name: "test",
type:"text",
pattern: "[0-9A-F]+",
required: true,
},]
}
var cb = form_panel.create_show_form_callback("some_id", "Title", form_config);
navbar.add_tool("test", "toolbox", {callback: cb});
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
For further good practices have a look at our review guidelines.