mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Forms: Minimum text field length (#5287)
This commit is contained in:
parent
656e94c612
commit
d7cdb65243
|
@ -726,6 +726,7 @@ CLASS zcl_abapgit_html_form IMPLEMENTATION.
|
|||
|
||||
DATA:
|
||||
lv_type TYPE string,
|
||||
lv_minlength TYPE string,
|
||||
lv_maxlength TYPE string.
|
||||
|
||||
|
||||
|
@ -747,13 +748,16 @@ CLASS zcl_abapgit_html_form IMPLEMENTATION.
|
|||
lv_type = 'text'.
|
||||
ENDIF.
|
||||
|
||||
IF is_field-min > 0.
|
||||
lv_minlength = | minlength={ is_field-min }|.
|
||||
ENDIF.
|
||||
IF is_field-max > 0.
|
||||
lv_maxlength = |maxlength={ is_field-max }|.
|
||||
lv_maxlength = | maxlength={ is_field-max }|.
|
||||
ENDIF.
|
||||
|
||||
ii_html->add( |<input type="{ lv_type }" name="{ is_field-name }" id="{ is_field-name }"|
|
||||
&& | value="{ is_attr-value }" { is_field-dblclick }{ is_attr-placeholder }|
|
||||
&& |{ is_attr-readonly }{ is_attr-autofocus } { lv_maxlength }>| ).
|
||||
&& | value="{ is_attr-value }"{ is_field-dblclick }{ is_attr-placeholder }|
|
||||
&& |{ is_attr-readonly }{ is_attr-autofocus }{ lv_minlength }{ lv_maxlength }>| ).
|
||||
|
||||
IF is_field-side_action IS NOT INITIAL.
|
||||
ii_html->add( '</div>' ).
|
||||
|
|
Loading…
Reference in New Issue
Block a user