Skip to content

Commit a4ddc4a

Browse files
committed
Fix code snippet consistency issues across documentation
- Fix interface casing: Z2UI5_if_app → z2ui5_if_app (xlsx.md) - Fix class name typo: z2ui5_cL_util → z2ui5_cl_util (xlsx.md) - Fix method casing: )->Text( → )->text( (view.md) - Fix keyword casing: when → WHEN for consistency (popups.md) - Fix JS variable typo: oCompContainter → oCompContainer (fiori.md) - Fix markdown code fence: 4 backticks → 3 backticks (general.md) - Fix code language tag: ```json → ```css for CSS block (fiori.md) - Normalize variable prefixes: lr_view/lr_page → view/page (fiori.md) https://claude.ai/code/session_0165sq6V21ktTSAhKUW4r74K
1 parent 6512567 commit a4ddc4a

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

docs/advanced/fiori.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ sap.ui.core.Component.create({
3131
}
3232
}
3333
}).then(function (oComponent) {
34-
var oCompContainter = new sap.ui.core.ComponentContainer({
34+
var oCompContainer = new sap.ui.core.ComponentContainer({
3535
component: oComponent,
3636
async: true
3737
});
3838

3939
// Add component container to your VBox
4040
var oVBox = that.getView().byId("VBoxId")
4141
oVBox.destroyItems();
42-
oVBox.addItem(oCompContainter);
42+
oVBox.addItem(oCompContainer);
4343

4444
//Overwrite default height of object page section
4545
var oSection = that.getView().byId("[This is the ID of your object page section::Section]");
@@ -58,7 +58,7 @@ sap.ui.core.Component.create({
5858
```
5959

6060
4. Add CSS (style.css):
61-
```json
61+
```css
6262
.customSectionHeight {
6363
height: auto !important;
6464
}
@@ -76,13 +76,13 @@ sap.ui.core.Component.create({
7676
7777
ENDIF.
7878
79-
DATA(lr_view) = z2ui5_cl_xml_view=>factory( ).
80-
DATA(lr_page) = lr_view->page( showheader = abap_false
81-
backgrounddesign = `List` )->content( ). "Backgrounddesign "List" sets a white background color
79+
DATA(view) = z2ui5_cl_xml_view=>factory( ).
80+
DATA(page) = view->page( showheader = abap_false
81+
backgrounddesign = `List` )->content( ). "Backgrounddesign "List" sets a white background color
8282
83-
lr_page->text( `TEXT` ).
83+
page->text( `TEXT` ).
8484
85-
client->view_display( lr_view->stringify( ) ).
85+
client->view_display( view->stringify( ) ).
8686
8787
ENDMETHOD.
8888
```

docs/development/general.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ CLASS z2ui5_cl_app IMPLEMENTATION.
4141
ENDCASE.
4242
ENDMETHOD.
4343
ENDCLASS.
44-
````
44+
```
4545
Refer to the specific sections of this development guide for more details on the implementation process.

docs/development/popups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Check out the popup to confirm, for example:
6464
6565
CASE abap_true.
6666
67-
when client->check_on_init( ).
67+
WHEN client->check_on_init( ).
6868
DATA(lo_popup) = z2ui5_cl_pop_to_confirm=>factory(
6969
i_question_text = `Can you confirm this?`
7070
i_event_confirm = `CONFIRM`

docs/development/specific/xlsx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Transform uploaded xlsx files into an internal table:
1515
CLASS z2ui5_cl_sample_upload DEFINITION PUBLIC.
1616
1717
PUBLIC SECTION.
18-
INTERFACES Z2UI5_if_app.
18+
INTERFACES z2ui5_if_app.
1919
DATA mv_path TYPE string.
2020
DATA mv_value TYPE string.
2121
@@ -261,7 +261,7 @@ CLASS lcl_help IMPLEMENTATION.
261261
result = `data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,` && result.
262262
263263
CATCH cx_root INTO DATA(x).
264-
z2ui5_cL_util=>x_raise( x->get_text( ) ).
264+
z2ui5_cl_util=>x_raise( x->get_text( ) ).
265265
ENDTRY.
266266
ENDMETHOD.
267267
ENDCLASS.

docs/development/view.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can use any UI5 control available in the UI5 SDK. However, working with XML
2626
z2ui5_cl_xml_view=>factory(
2727
)->shell(
2828
)->page( `My title`
29-
)->Text( `My text`
29+
)->text( `My text`
3030
)->stringify( ) ).
3131
3232
ENDMETHOD.

0 commit comments

Comments
 (0)