From 8a02428ac257002abcd931643abaa6e1d9f07202 Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:23:28 +0200 Subject: [PATCH] Update property.md (#326) --- docs/contribution/property.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/contribution/property.md b/docs/contribution/property.md index e69de29b..6b9ac829 100644 --- a/docs/contribution/property.md +++ b/docs/contribution/property.md @@ -0,0 +1,25 @@ +_Every help and PR extending abap2UI5 view class with additional properties is welcome!_ + + If you create a view and you miss a specific property or event of an UI5 control, you can extend the class z2ui5_cl_xml_view. It is an ABAP copy of the UI5 API. Just extend the importing parameters of the method with the additional property by doing the following:

+**(1) Check the UI5 API for the UI5 Control you want to extend:** +Go to the [UI5 API](https://sapui5.hana.ondemand.com/#/api) and search for your UI5 Control. (for example "Input")
+image +
+**(2) Check the properties and events of the UI5 Control:**
+Scroll down to see the properties:
+image +And events:
+image
+**(3) Find the property or event you newly want to add: (for instance "showclearicon")**
+image
+**(4) Open the class z2ui5_cl_xml_view in eclipse and scroll to the method of the control:**
+image
+**(5) Add the name of the new property in the method definition:**
+image +(type is always "clike", optional, case is not relevant)
+**(6) Add the name of the new property in the method implementation:**
+image
+(in this case it is a boolean, so wrap it into the helper method, normally no need for this)
+(7) Contribute your change by opening a PR. + +**Thank you for your help!**