14.01.2020 Views

ABAP_to_the_Future

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Adding Elements with OpenUI5 13.5

Figure 13.39 OpenUI5 Developer Guide

At this point, to explore the vast array of options open to you, navigate to the

Explored tab. As you can see in Figure 13.40, on the left is a huge list of UI elements.

If you select one, then the right-hand side of the screen displays a description

of what this entity does. If you click Samples, you can see a working example,

and then you can click the Code button to see the code needed to make this

work. Usually, you’ll see some code samples: a view, a fragment, and a controller.

By now, you hopefully understand which one does what.

Just as an example, if you want to add a dropdown menu at the top of your monster

application in the form of an action sheet (as shown in Figure 13.40), it’s the

work of minutes to copy the sample code from the website into your controller

and view files, add a fragment file, and then make some monster-related changes.

Figure 13.40 List of UI Entities with Example Code

617

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!