How can you change the swatch that a button uses inside a grid?
Hello,
When you add buttons through the html code you can specify the theme of a button via attributes. Here you can find more info: http://api.jquerymobile.com/button/
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello,
When you add buttons through the html code you can specify the theme of a button via attributes. Here you can find more info: http://api.jquerymobile.com/button/
Hi Evgene, thks for your quick response.
I'll look into this.
Best
Hi,
Could you please post an example how you would like these buttons to look?
Hi,
Pls see att'd screenShot.
in fact, my first idea was to make that windown using the Appery Buttons in a Grid.
But the JQuery .slideDown() doesn't work. it looks like .show() with no slide.
to get the sliding effect, I had to use the html component with or JS' buttons. however, this way has trouble when willing to change the color of the buttons.
to summarize, I don't really care of Appery Buttons within a Grid, or HTML Buttons,
as long as I get:
. right colors,
. good slideDown effect.
looking forward to read you soon ![]()
Eric
Hi Eric,
Please provide us your buttons HTML code.
Also please give us your app public link and describe steps to achieve this page with buttons.
Regards.
just realized that my code vanished in the above posts as I didn't made it as img format. let me prepare something. thks for your time.
att'd is part of the code:
a/ HTML to set the table,
b/ JS to make the buttons.
as explained before, I first tried to set the buttons with HTML but results wasn't good (overwriting red onto swatch color as per previous post's attd img). So, I tried with JS but same.
it does mess up as soon as I use the $( ".EcoButton" ).button({ theme: "b" });
without this line, "red" buttons are in right position.
thks for your time,
Eric
PS: I am also sharing the app.
Hi,
What is your app name?
sorry,
here you are o2o4pw