Page 1 of 1

button icon

Posted: Mon Jan 20, 2014 5:42 pm
by Michael4771079

Hi,
I have uploaded an icon to the mediamanger called cartwhite.png, its 15px x 15px.
added this property

Image

the button shows the plus icon, and not the cartwhite.png I uploaded,
dont understand it worked on the bars icon applied in the same way,
what do you think I done wrong?

cheers Image


button icon

Posted: Mon Jan 20, 2014 6:55 pm
by Maryna Brodina

Hello! You can't set data-icon this way. There should be specific data-icon value, not picture name (see here http://demos.jquerymobile.com/1.3.2/w...). What do you mean on "it worked on the bars icon applied in the same way"? Could you post screenshot?


button icon

Posted: Mon Jan 20, 2014 7:01 pm
by Michael4771079

Hello!
screenshot above
here is the property panel

Image


button icon

Posted: Mon Jan 20, 2014 7:16 pm
by Maryna Brodina

If you check the link I posted you'll see there is a "bars" value for data-icon, you can't use cartwhite 15 as value.


button icon

Posted: Mon Jan 20, 2014 8:28 pm
by Michael4771079

Thanks Maryna,
I have read the custom icon section and this is what I did,
dont think I got the css right?

this is the css called "iconbutton"
button name cartbutton
image cartwhite18.png

Image

this is the ui settings

Image

and one other thing.
love the panel component, one of the best additions yet
is there a way to make the panel slide up and down with the same controls like push, overlay etc

thanks as always


button icon

Posted: Mon Jan 20, 2014 10:20 pm
by Maryna Brodina

1) Did you set it through more properties data-icon=cartbutton?
2) You have incorrect image path, this should help https://getsatisfaction.com/apperyio/...