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

  Routing

Requires using pks.ui5strap.viewer.App or one of its inheritants as main class.

Routing (optional)

Define the base path that is prepended to all routes together with a # sign.

  app.json
{
    "app" : {
        ...
        
        "routing" : "/"
    },
	
    ...
}

The app is now reacting to all hashes that start with a slash.

Page Routes (optional)

  app.json
{
    ...
    
    "pages" : [
        ...
            
        {
            "id" : "home",
            "viewName" : ".views.Home",
            "route" : ""
        },

        {
            "id" : "about",
            "viewName" : ".views.About",
            "route" : "about"
        }
    ]
    
    ...
}

Route Parameters (optional)

© 2013 - 2023 PKSoftware.de

  • Contact