on 10-02-2013 8:23 AM
I am working on extending a standard tile to use a custom html inside it and adding some of my own functionality. I am having a problem doing this. when i extend the standard tile and add code to the rederer the tile does not work as it should - it is the same size and such but it does not position itself automatically like standard tile does.
what am i doing wrong or how should i approach this?
Thanks in advance
Message was edited by: Michael Appleby
Hi Janis,
You could use 'CustomTile' instead
Please find below an example
http://jsbin.com/uxokuc/100/edit
Thanks and Regards, Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for our reply!
I looked at your example and trying out to work on a CustomTile. I end up not being able to pass more content to the CustomTile like this:
var oTile = new sap.m.CustomTile({
content:[new sap.m.Button({text:'button inside custom tile1'}) ,new sap.m.Button({text:'button inside custom tile'})]
});
how i could i do this because i would want to merge sap.ui.core.HTML with sap.m...
Hi Janis,
You could your contents into a Layout control and add this layout to content of custom container.
Please find below a example with sap.ui.core.HTML added
http://jsbin.com/uxokuc/106/edit
Thanks and Regards, Venkatesh
You helped me a great deal, but could you clear something out for me?
I have the following:
http://jsbin.com/uBAhULu/1/edit?html,output
how can i get to work this correctly so that pressing the "gear" button I would call only the fuction assigned to the button not the tile?
Thanks in advance
Hi Janis,
You could use event.stopPropogation() method.
Please find below a example
http://jsbin.com/uBAhULu/2/edit
Thanks and Regards, Venkatesh
Hi Janis,
You could use addStyleClass method.
Please find below a example
http://jsbin.com/uBAhULu/3/edit
Thanks and Regards, Venkatesh
Hi,
I extended StandardTile and kept local resources folder in webcontent and worked fine. Now to get some new features, I removed resources folder and my bad luck tiles are not coming in screen. I am new in UI5, please help.
Sanjoy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.