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

  Events

onInit

  helloworld/controller/Events.controller.js
/**
* Simple Controller.
*/
sap.ui.define(['pks/ui5strap/viewer/Controller'], function(Controller){
	
    "use strict";
	
    var controllerImpl = {
        /**
        * Called when the view has been initialized.
        */
        onInit : function(){
            
        }
    };
	
    //Return constructor
    return Controller.extend("mycompany.helloworld.controller.Events", controllerImpl);

});

NavContainer Events

  helloworld/controller/Events.controller.js
/**
* Simple Controller.
*/
sap.ui.define(['pks/ui5strap/viewer/Controller'], function(Controller){
	
    "use strict";
	
    var controllerImpl = {
        /**
        * Called when the view has been initialized.
        */
        onInit : function(){
            
        },
        
        /**
        * Called when the view has been updated in a NavContainer
        */
        onPageUpdate : function(oEvent){
        
        },
        
        /**
        * Called before a view is shown inside a NavContainer
        */
        onPageShow : function(oEvent){
        
        },
        
        /**
        * Called before a view is hidden inside a NavContainer
        */
        onPageHide : function(oEvent){
        
        },
        
        /**
        * Called adter a view has been shown inside a NavContainer
        */
        onPageShown : function(oEvent){
        
        },
        
        /**
        * Called after a view has been hidden inside a NavContainer
        */
        onPageHidden : function(oEvent){
        
        }
    };
	
    //Return constructor
    return Controller.extend("mycompany.helloworld.controller.Events", controllerImpl);

});

© 2013 - 2023 PKSoftware.de

  • Contact