Skip to content

Commit e1d6e23

Browse files
authored
update
1 parent fac2766 commit e1d6e23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/development/model/device.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ outline: [2, 4]
77

88
The device model is bound to the view by default with the name `device`. You can access it easily in your view. For example:
99
```abap
10-
page->input( description = `device model - resize - width` value = `{device>/resize/width}` enabled = abap_false ).
10+
page->input(
11+
description = `device model - resize - width`
12+
value = `{device>/resize/width}` ).
1113
```
1214
Explore all available parameters in the [UI5 Documentation.](https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.Device)
1315

@@ -59,7 +61,7 @@ CLASS z2ui5_cl_sample_device IMPLEMENTATION.
5961
client->view_display( lo_view->stringify( ) ).
6062
6163
IF client->get( )-event = 'POST'.
62-
client->nav_app_leave( client->get_app( client->get( )-s_draft-id_prev_app_stack ) ).
64+
"process device info here...
6365
ENDIF.
6466
6567
ENDMETHOD.

0 commit comments

Comments
 (0)