Ui5Strap
  • About
  • Manual
  • API
  • Code Examples
  • Demos
  • License

Table of Contents

  •   Quickstart
    •   Installation
    •   Hello World
    •   Run

Basics

  •   Project Structure
    •   File Structure
    •   Binaries
    •   Build Tools
    •   Dev Server
    •   Web App Folder
  •   Bootstrapping
    •   Index File
    •   App Icons
    •   Splash Screen
    •   Initialization
  •   Configuration
    •   Overview
    •   App Settings
    •   Developers & Licenses
    •   Environments
    •   Stylesheets
    •   Root Navigation
    •   Pages
    •   Routing
    •   Libraries
    •   Models
    •   Options
    •   Components
    •   Actions
    •   Events
    •   Scripts
  •   Layout
    •   Using Controls
    •   Composing Views
    •   Fragments
  •   Styling
    •   Themes
    •   Custom Style
    •   Style Options
  •   Binding
    •   Element Binding
    •   Property Binding
    •   Aggregation Binding
    •   Formatters
  •   Logic
    •   Controllers
    •   Events
    •   Actions

Appendix

  •   Change Log
    •   0.11.x -> 1.0.0
    •   1.0.0 -> 1.0.1

  Run

Run as webapp

  1. Start server

    Execute the shell script bin/run-web.sh to start the node.js http server.

    Windows

    Double-click the file run-web.sh in the explorer. A new window will popup.

    Linux and OSX

    Open the terminal. Change into the bin directoy and run "sh run-web.sh".

  2. Open apps

    There can be multiple apps in the same Ui5Strap project. Specify the path to the configuration of the desired app as get parameter "app". The path should be relative to the index.html file. Ui5Strap will load the default app if no "app" parameter is given.

    Open helloworld app

    Open the url http://127.0.0.1:8282/?app=apps/helloworld/app.json with your web browser.

    Open examples
    • Example 1: http://127.0.0.1:8282/?app=examples/demoapp/app.json
    • Example 2: http://127.0.0.1:8282/?app=examples/fiori/app.json
    • The path is relative to the index.html file if no absolute url is provided
    Open default app
    • Open the url http://127.0.0.1:8282/ with your web browser
  3. Set the default app

    Open the file www/index.html and scroll down to the main script initialization (around line 220).

    In the viewer configuration, change the value of the property "defaultValue":

      index.html
    ...
    	
    app : {
        type : "URI",
        uriParam : "app",
        defaultValue : "./apps/helloworld/app.json"
    }
    	
    ...
    

    Or if you want to disable the app parameter and always load the same app:

      index.html
    ...
    	
    app : "./apps/helloworld/app.json"
    	
    ...
    

© 2013 - 2019 PKSoftware.de

  • Contact