Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: Event Parameters in Controller

$
0
0

Hi,

From the event i would like to know the source and other parameters.

 

Code:

 

fragment

<core:FragmentDefinition

   xmlns="sap.m"

   xmlns:core="sap.ui.core" >

<Button text = "pass event" press = "handlepress" />

</core:FragmentDefinition>

 

View:|

<core:View controllerName="DELETE.view.Master" xmlns:core="sap.ui.core" xmlns:l="sap.ui.layout" xmlns:table="sap.ui.table" xmlns="sap.m">

  <Page id="productListPage" navButtonPress="onNavBack" showNavButton="true" title="{i18n>masterTitle}">

 

  <content>

  <core:Fragment fragmentName="DELETE.view.test" type="XML" />

</content>

 

  </Page>

</core:View>

 

 

 

Controller:

handlepress: function (oEvent) {

  console.log(oEvent) ;

  },

 

Thx


Viewing all articles
Browse latest Browse all 3273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>