Button with text UNDER the icon

Ho,
I want to create a square button, where the text is UNDER the icon.
Is there an easy way to do this, or do I need to write my own component?
Cheers
Jens

Hi,
Use ID in your button. Suppose i have used buttonId then my CSS will look like this.
<style type="text/css">
#buttonId-img.sapUiIcon {
text-align: center;
display: block;
vertical-align: top;
line-height: 100%;
#buttonId.sapMBtn  {
height: 5.0rem;
min-width: 5.0rem;
margin: 0;
padding: 0;
vertical-align: top;
background-color: #f7f7f7;
border: 1px solid #bfbfbf;
color: #333333;
text-shadow: 0 1px 0 #ffffff;
font-family: Arial,Helvetica,sans-serif;
font-size: 0.875rem;
.sapMBtnContent>.sapUiIcon {
color: #666666;
font-size: 1.375rem;
line-height: 2.875rem;
width: 2.875rem;
text-align: center;
margin: auto;
</style>
This is screenshot.
Id of first button id buttonId and for second is button1Id.
This is view code now.
       createContent : function(oController) {
              jQuery.sap.require("sap.ui.core.IconPool");
              var oButton = new sap.m.Button("buttonId",{
                     text: "Press Me",
                     icon: sap.ui.core.IconPool.getIconURI("customer"),
              var oButton1 = new sap.m.Button("button1Id",{
                     text: "Press Me",
                     icon: sap.ui.core.IconPool.getIconURI("customer"),
              return new sap.m.Page({
                     title: "Title",
                     content: [
                               oButton, oButton1
Go through 3rd method of this document for doing experiments with your CSS. Implementing CSS in SAPUI5 Application
Regards
Dhananjay

Similar Messages

  • How do i create gallery with text under thumbnails?

    Hi. Im new in Muse and im trying to learn. My next challenge is to make thumbnails with text under like this:
    And when visitors click a thumbnail it should pop up the original size picture in a lightbox. A mouseover big pic
    should also work.
    Like this site. Affinity Surfaces | Color Gallery Here they have text on thumbnails and when you click on it it shows the full aize pic
    Any tips?
    My goal is to create my own art-page where i can show and sell my artwork

    That worked pnoypie
    I had to manually put pic in thumbnail and in lightbox. (or is it an other way?)
    I also had to put the text under thumbnail manually... but thats ok. To bad i cant group it with the thumbnail.
    Is it a way around that?

  • My iPhone 5 only display the apple screen with text on the top (like a command prompt). Has anyone else seen this???

    I was checking my mail and suddenly i get the apple screen with text on the top (like a command prompt). It won't receive phone calls and it doesn't respond to anything. I tried to force shutdown, reset, etc and nothing happened... Now the screen changed to vertical gray lines. I'm attaching a picture of both screen displays. Someone please help!!!!!

    Try a reboot by holding both the power and ome buttons until the apple logo appears.  If that does not bring it back, take it to an Apple store genius bar and have the technicians test it.

  • I have a iPad mini, I recently acquired a $15 iTunes card to get apps and music. I have forgotten my security questions and I cannot buy anything HELP (I tried to reset them in the Password and Security tab but the text under the questions does not show)

    I recently acquired a $15 iTunes card to get apps and music. I have forgotten my security questions and I cannot buy anything HELP (I tried to reset them in the Password and Security tab but the text under the questions does not show)

    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699?viewlocale=en_US&locale=en_US
    Try the link above. Try to find a phone number for your country, call and ask for account security.

  • I need to know how to put a photo in a box with text under photo, so they all will move in page

    I need to know how to put a photo in a box with text under it, so they move together in a page of text.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • Creating a button with text in FlashCS5

    I am fairly new with using FlashCS5.  I just finished the class and created a button with text in it for class but now when I need to do it for a project I can't seem to get it to work.
    I am trying to create a simple start and stop button to start and stop a Flash movie.  I can get the buttons to work without any text, such as the word start and stop in the middle of each.  Everything I've tried to do with the text on the button turns out the same.
    What happens is that in Flash the buttons appear to work fine.  The little hand with the finger shows no matter where I place my cursor on the button but when I test them the area where the text is does not allow the click to work.  I have tried specifying a hit area and made sure that the hit area was larger than the entire button but still the middle where the text is doesn't work.   Outside of the text area works fine.
    Any ideas?  I've spent 4 hours on this.

    Thank you for the reply but what I am doing is much simpler.  I am creating a gray rectangle and putting text in the center.  I am then selecting both the rectangle and the text and converting it to a button.  I am then editing the button from the library and adding a keyframe to the hit area, drawing a rectangle around the button to establish the hit area.
    I am enabling simple buttons and when in Flash it appears fine.  It is when I test that the area where the text is doesn't function as clickable.

  • HT201343 My MBP is Early 2011 but dunno why cant use mirroring with apple TV, the icon cannot be found

    My MBP is Early 2011 but dunno why cant use mirroring with apple TV, the icon cannot be found. So cannot use mirroring.
    I have follow trouble shooting , they recommend to go system preference -> display , thus can find out the mirroring icon if no mean it doesnt support. But according to the web, Early 2011 MBP should be able to use, dunno why.

    Just realise I havent updated my OS to mountain lion and this is the reason why I cannot use mirroring before ^^
    Thanks all

  • Why doesnt my itunes have "sync with wifi" under the option in the summary?

    why doeesnt my itunes have "sync with wifi" under the options in the summary tab?
    please help

    Hello greg.shae,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    Best of luck,
    Mario

  • HT1911 The iTunes setup would finish (clicking the finish button and everything) but the icon will not appear anywhere in my laptop?

    The iTunes setup would finish (clicking the finish button and everything) but the icon will not appear anywhere in my laptop?

    Try right clicking on your desktop then select new short cut from the drop down menu, find iTunes in the pop up window then click ok.

  • HT4623 issues with texting after the 6.1 update on my iPhone

    issues with texting after the 6.1 update on my iPhone

    My wife and I are on different networks ie GCI vs AT&T after we both updated our iphones to 6.1 we no longer can receive texts messaging even though both are phones say the message was delivered. we can however text with other iphone users as long they are withing the same carrier and with everyone as long as they are not other iphones regardless of the carrier as well as with other iphon users that are still using 6.0. My wife and I also have ipads with wifi only and the one we updated to 6.1 is having the same issue while the one that is still 6.0 has no issue and will send and receive messages with out issue even to and from the 6.1 devives that are having issues. I have contacted both service providers and was told it is a Apple messaging issue. At this point I just would like to find and reinstal the 6.

  • Why don't the indicator lights come on under the icons in the Dock anymore?

    Hi,
    A seemingly silly question, but it's bugging me.
    The indicator lights under the icons in the Dock have stopped lighting up when a program is active. How do I turn them back on?
    Thanks!

    Did you try logging out and back in again? That should clear it up.

  • HT5137 Words with Friends has frozen. After double clicking the home button, swiping or pressing the icon does not bring up the minus sign.

    On my IPad Words With Friends has frozen. I have double clicked on the home button and identified the WWF icon. When I press and hold or swipe vertically the icon darkens but does not shake or bring up the minus sign. Any suggestions?

    Force close apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen
    http://support.apple.com/kb/ht5137

  • How to allign text under the barcode with same width?

    Hi,
    I need to put a barcode in my form with the human readable text right under it and more importantly,irrespective of the number of digits of the text number, it needs to be space out exactly equal to the barcode length.can anyone please help with text formatting here? And what if the barcode might change in future? Something like below:
    IIIIIIIIIIIIIIIIIIIIIIIII
    1 2 3 4 5 6 7
    IIIIIIIIIIIIIIIII        
    1234567
    Edited by: Aditi Bhandari on Nov 22, 2009 3:38 PM

    For sapscripts and smart forms (what is your techno?), SAP allows you only to print barcodes (bars), not the texts corresponding to these barcodes, so you will have to implement a custom solution.
    As SAP doesn't provide you the actual width of the generated barcode, you will have to determine empirically the formula.
    I think it will be rather tough to use "space" characters or font size to manage the spacing between characters.
    Instead, I see 2 solutions:
    - send directly the text to the printer with the right Character Per Inch value : First calculate how many characters per inch you need (barcode estimated width divided by number of characters), then use print controls HEX - ENDHEX to define the instructions in printer language (for each device type you will print to). For better rendering use fixed font (COURIER, etc.) Note that it will work for printout, but not for print preview (text won't appear at all).
    - second solution would be to generate text as an image if you have such a software, and print the image. It will work well in all situations.

  • Button wont work with Text in the way, code to ignore text?

    Hey, I'm createing a menu but the text on button stops button animation on click, is there code to ignore the text? I dont want to have to create a new graphic for every button I've tried grouping but that didnt help please help me!! (Awesome product btw Adobe, love you long time)
    Emma

    Yeah I thought of that, just the animation is inside the button symbol and the text is outside. I have heaps of instances of the same button, so if I put the text inside the symbol for button obviously it will go on every instance.
    How would I code an invisible button to play inside the button symbol from the main timeline? Sorry been a long time since I was coding in flash, lol and very new to edge, guess cos it's new... lol
    So I would have the invisible area to click on the main timeline and I would want to code that to play the timeline inside the button symbol. Hopefully that makes sense.

  • My ipod won't sync with my itunes the icon comes up and lets me push the sync button but it won't actually sync, what do i have to do?

    ive tried uninstalling then reintsalling but nothing has changed, please help me. thank you

    How is your iPod configured to sync with your iTunes library?  What options do you have enabled/configured from under the iPod's Summary and Music tabs?  Perhaps this article can offer more assistance.
    iTunes: Syncing media content to iOS devices and iPod
    B-rock

Maybe you are looking for

  • I want to acces my one note book offline. ..

    I cannot acces my notebook in offline mode. However, it seems that online mode is the only possibility to syncr with my Ipad.  I would like to be able to open and edit my notebook both on my Ipad and on my windows computer offline, and when I am onli

  • Bw general

    whats the meaning of involved in Multi dimentional modeling. whats the meaning of validated data consistency in reporting with data targets aganist psa after loading them to data targets. how we can do performence for unit testing and integrity testi

  • Apple store iphone 5 a1429

    Hi, I've ordered iphone 5 from the online store to the apple store on Roseville, CA. Before I paid for it I went to the store to check that they selling the a1429 model. First the guy told me they don't sell it, and its only on verizon, but I showed

  • App store doesn't recognise my purchases

    Purchased Final cut Pro Through app store but now store does not recognise my purchase and will not update the software.  There is no direct link to App store to resolve this issue.

  • Cannot Apply User Define Serial for ITEMS

    hi , we have to generate user define serial # for items . for that we need to upload the MAC addresses as serial number from a excel spread sheet can any one help regarding that please Thanks & regards Moni.