abap2UI5/docs/contribution/control.md
oblomov 8dd5b09576
Update control.md (#330)
* Update control.md

* update

* controls

* update controls
2023-07-01 11:27:28 +02:00

1.3 KiB

Every help and PR extending abap2UI5 with additional UI5 controls is welcome!

If you create a view and you miss a specific UI5 control, you can extend the class z2ui5_cl_xml_view. It is an ABAP copy of the UI5 API. Just add a new method named by the control and add its attributes as importing parameters. Do the following:

(0) Analyse the UI5 API for the Control you want to add: Read the following issue to understand the UI5 API.
(1) Check the name, properties and events of the new control: image (for example sap.m.Button)
(2) Create a new method in the class z2ui5_cl_xml_view named by the control and add all properties you need: image (use always optional and type clike)
(3) Add the implementation: image (wrap boolean properties with the utility class)
(7) Contribute your change by opening a PR.

Thank you for your help!