Add debug option to show href-links on hover (#6239)

This commit is contained in:
Marc Bernard 2023-04-22 13:17:49 +02:00 committed by GitHub
parent 39d2e88be3
commit d23fdfd233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,6 +289,7 @@ CLASS zcl_abapgit_html IMPLEMENTATION.
lv_act TYPE string,
lv_style TYPE string,
lv_title TYPE string.
DATA lv_mode TYPE tabname.
lv_class = iv_class.
@ -341,6 +342,14 @@ CLASS zcl_abapgit_html IMPLEMENTATION.
lv_title = | title="{ iv_title }"|.
ENDIF.
" Debug option to display href-link on hover
GET PARAMETER ID 'DBT' FIELD lv_mode.
IF lv_mode = 'HREF'.
lv_title = | title="{ escape(
val = lv_href
format = cl_abap_format=>e_html_attr ) }"|.
ENDIF.
rv_str = |<a{ lv_id }{ lv_class }{ lv_href }{ lv_click }{ lv_style }{ lv_title }>|
&& |{ iv_txt }</a>|.