Page 1 of 1

Contact BUTTON and a imported icon

Posted: Tue Oct 15, 2013 2:03 pm
by Alfred Butler

I have read the document on retrieving contacts using PhoneGap. That is ok.
I want to follow the Android convention (iOS also I guess) and create a small button with the STANDARD contact PIC or ICON that informs users that it will retrieve the contacts.

So my question is.....how can I import the icon and place it on the button?
I see your standard icons to be used for a button, but can't determine where I can add a new one.

Thank you.


Contact BUTTON and a imported icon

Posted: Tue Oct 15, 2013 2:59 pm
by Kateryna Grynko

Hi Alfred,

You can do this using styles or JavaScript.

Here is how to do it with styles:
code[name=mobilebutton_211] span span:nth-child(2){background-image: url(images/icons-18-white.png);}/code
where mobilebutton_211 is a button name
images/icons-18-white.png is an image link