I am looking for controlls that can use the icon attribute in order to display the sap-icon://accept. Till right now i have been using button in order to display icons, but as of right now, the border that does make an button, isn't fitting for the task, as such, i am looking for a new controll, that supports icon attribute as well as onPress/onClick Events.
<Button icon="sap-icon://accept"/> //displays the accept icon, however it does an border that makes an Button.
There is sap.ui.core.Icon class for displaying icons.
It also has press event you can use to click on that icon.
<core:Icon src="sap-icon://accept" color="#8875E7" press="handlePress" />
Related
I want to make a button in ionic not clickable, so how can I do it?
I have buttons inside a header bar and they are scores, so people can't click on them.
use ng-disable
<button ng-disable="true"></button>
I am having some issues getting my button in the designer GUI to show the stock icons. I have the button set to "text and icon" with an icon selected however the text is only showing... No icon. Some of the stuff I have read talk about solutions for when you are creating a button from code. However I am creating the button in the designer. It would be pretty annoying if I have to address each button in code to change it to show the stock image.
If it still helps you: when you use the designer, select your button and go into the properties tab. There you can change the button properties from "Text Only" to "Stock button" or "Text & Icon". Using "Stock Button" gives you a selection of stock icons you can choose feom. Using "Text & Icon" lets you set a custom label and lets you load custom made icons (and also stock icons) into a Pixbuf.
I have an application which contains generated code for ion-nav-view. When I remove the code, the entire app disappears. I want to get rid of the arrows generated by ion-nav-view. Is there a way to do this without throwing away the entire app? I just want a view without the extra nav buttons.
The answer is that a button bar child element which was an href styled as a button, i.e.
<a href="/page1" class="button">
was being parsed and displayed into the topmost and bottom most region as part of the ion-nav-bar. The solution, in my case was to remove the anchor styled as a button in another part of the app, and the phantom objects at top of page and bottom of page go away.
I'm not sure what that magic logic was supposed to achieve, but I'm not a fan.
If I want an image on my UIButton, and I still want to use the default white button. Is it ok to add an image(icon) over some parts of the button?
I have a button with the text 'Show on map' and I want a icon to the right.
Is this the only approach or are there other possibilities? When I add an icon over the button some parts of the button won't be "clickable".
Thanks in advance.
you could create a custom button that has an image the 'icon' and then the rest is transparent and then overlay this button over the standard one and give them the same action.
An easier way would just to be create an image that is the button exactly as you want it and use the 'custom button' style and use this as the backgroundImage.
I am creating an iPhone webapp with a textbox. I would like that textbox to display a "clear button" on the right side of the box... aka the round grey button with the X in it.
Is it possible to set a css or html property so safari handles this, or do i need to develop this ability on my own using an image and some code.
I know you can set the Clear Button property of a UITextBox for a native app, but this is a webapp i am creating.
An input field of type "search" will bring up a rounded text box with a clear button marked "X". That is the closest I have found without using javascript.
<input xmlns="http://www.w3.org/1999/xhtml" type="search" value="search me" />