Skip to content

Commit 8f094f1

Browse files
committed
feat: Add rule for creating a Form
1 parent 44439bc commit 8f094f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

resources/guidelines.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,9 @@ When creating a new UI5 project within a CAP project, a specific set of rules ap
102102
- **NEVER** configure a `ui5-middleware-simpleproxy` in the `ui5.yaml` file to connect to the local CAP service.
103103
- **Why:** The `cds watch` command ensures the UI and the service are served from the same origin (`http://localhost:4004`), making a proxy unnecessary.
104104
- **Accessing the App:** Check the CAP launch page (typically `http://localhost:4004`) for a list of available services and links to the UI5 applications.
105+
106+
## 4. Rules to create a Form
107+
108+
- **Never** use sap.ui.layout.form.SimpleForm unless requested explicitly
109+
- **Always** use a sap.ui.layout.form.Form. Use sap.ui.layout.form.ColumnLayout as layout for the Form.
110+
- **Always** use 2 columns as default for M-size, 3 columns as default for L-size, 4 columns as default for XL-size if not requested differently.

0 commit comments

Comments
 (0)