Page 1 of 1
Button Themes
Posted: Tue Mar 25, 2014 7:18 pm
by Davyen Nelson
I want to give users the ability to change the buttons in the settings to whatever they want. I want a navbar without the background of it so I just have a custom button that a user clicks. Then in the event handler have a click event that when the picture or button is clicked it takes you to a specific page. Would something like this need to be done with a picture or button?
Thanks
Button Themes
Posted: Tue Mar 25, 2014 8:18 pm
by Nikita
Hello,
Please, take a look at this link:
http://docs.appery.io/documentation/u...
Button Themes
Posted: Tue Mar 25, 2014 8:32 pm
by Davyen Nelson
I don't think you understood my question correctly I want to have themes for my buttons like changing the theme of how the icon looks for the button itself not the over all theme. Also, would you happen to know how to change the icon with a picture using CSS?
Button Themes
Posted: Tue Mar 25, 2014 9:46 pm
by Nikita
You can change button icon in this way:
[name=mobilebutton]:after {
background: url("http://example.com/icon.png");
background-size: 20px 20px;
}
Also, you can change other styles for button with such CSS selector:
[name=mobilebutton]{
}
where mobilebutton - button name
Button Themes
Posted: Wed Mar 26, 2014 7:31 pm
by Davyen Nelson
My last question is if I for say wanted to make it into a custom component so I can use the same nav bar for several pages, do I just make all different nav bars? I tried making a custom icon on a custom component navbar and the CSS didnt work.
Button Themes
Posted: Wed Mar 26, 2014 9:12 pm
by Nikita
Hi,
You can save the navbar as a custom component, and then add it to each page.