on 02-05-2016 12:51 PM
Hi,
is it possible to add an event on the image in the ObjectPageHeader? Because I would like to show a Popover when I click on the image in the ObjectPageHeader, but I can't find any events for that.
Thanks in advance
Sebastian
Hi Sebastian,
you can get image object like this
this.getView().getContent()[0].getHeaderTitle().mAggregations._objectImage
Regards,
Sanjoy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please try this
oImage.attachBrowserEvent("mouseenter", function(){
});
Regards,
Sanjoy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanjoy,
how I get the image-object from the ObjectPageHeader? Because, actually I only have the object from the ObjectPageHeader.
Code snippet:
View:
<uxap:ObjectPageLayout id="ObjectPageLayout" showTitleInHeaderContent="true">
<uxap:headerTitle>
<uxap:ObjectPageHeader id="header"
objectImageURI="sap-icon://person-placeholder"
objectTitle="title"
objectImageShape="Square"
objectSubtitle="subtitle">
</uxap:ObjectPageHeader>
</uxap:headerTitle>
<uxap:headerContent>
[...]
</uxap:ObjectPageLayout>
Controller:
var head = this.byId('header');
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.