Alfred Butler
Posts: 0
Joined: Wed Sep 18, 2013 12:35 pm

Contact BUTTON and a imported icon

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Contact BUTTON and a imported icon

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

Return to “Issues”