Skip to content

Commit 6657a33

Browse files
authored
update
1 parent 204a454 commit 6657a33

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

docs/advanced/technical/concept.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,35 @@ One key feature is that the browser does not re-render the entire HTML page, but
100100
While modifying the XML view would typically trigger a complete re-render, focusing solely on updating the view model and binding UI attributes to it allows the UI5 framework to automatically update only the affected parts. Try out this snippet:
101101

102102
```abap
103+
CLASS z2ui5_cl_app_partly_rerender DEFINITION PUBLIC CREATE PUBLIC.
103104
105+
PUBLIC SECTION.
106+
INTERFACES z2ui5_if_app.
107+
DATA text TYPE string.
108+
DATA enabled TYPE abap_bool.
109+
110+
ENDCLASS.
111+
112+
CLASS z2ui5_cl_app_partly_rerender IMPLEMENTATION.
113+
114+
METHOD z2ui5_if_app~main.
115+
116+
IF client->check_on_init( ).
117+
client->view_display( z2ui5_cl_xml_view=>factory(
118+
)->input( enabled = client->_bind( enabled ) value = client->_bind( text )
119+
)->button( text = 'partly rerender html' press = client->_event( 'POST' )
120+
)->stringify( ) ).
121+
ELSE.
122+
enabled = xsdbool( enabled = abap_false ).
123+
text = text && ` text`.
124+
client->view_model_update( ).
125+
ENDIF.
126+
127+
ENDMETHOD.
128+
129+
ENDCLASS.
104130
```
105-
Ist that beatuiful?
131+
Isn't that beatuiful?
106132

107133
#### Summary
108134

0 commit comments

Comments
 (0)