Removing the Delete button from Edit Grid using custom CSS
This tutorial demonstrates how to use custom CSS to remove the delete button from an Edit Grid component.
-
In the same form where you added the Edit Grid, add an HTML Element component input the below CSS snippet:
<p></p>
<style>
.my-edit-grid .removeRow {
display: none;
}
</style>This code snippet makes items with the class
removeRow(representing delete buttons) invisible on the webpage. It does this by using the classmy-edit-gridon their containing elements and setting the display property tonone. -
Hover over the Edit Grid and select Edit JSON.
-
In the Component JSON add a
customClassparameter that references themy-edit-gridcustom CSS class.Insert this parameter before the
componentsparameter."customClass": "my-edit-grid",
-
Save the component and the form.