Davyen Nelson
Posts: 0
Joined: Tue Mar 25, 2014 7:18 pm

Button Themes

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Button Themes

Hello,

Please, take a look at this link:
http://docs.appery.io/documentation/u...

Davyen Nelson
Posts: 0
Joined: Tue Mar 25, 2014 7:18 pm

Button Themes

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?

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Button Themes

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

Davyen Nelson
Posts: 0
Joined: Tue Mar 25, 2014 7:18 pm

Button Themes

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.

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Button Themes

Hi,

You can save the navbar as a custom component, and then add it to each page.

Return to “Issues”