Page 2 of 3

How can you change the swatch that a button uses inside a grid?

Posted: Mon Jul 07, 2014 3:38 pm
by Evgene Karachevtsev

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/


How can you change the swatch that a button uses inside a grid?

Posted: Tue Jul 08, 2014 12:45 am
by EJLD

Hi Evgene, thks for your quick response.
I'll look into this.
Best


How can you change the swatch that a button uses inside a grid?

Posted: Tue Jul 08, 2014 3:48 am
by EJLD

Hi (again) Evgene,
I hv tried your advice.
However, still stuck with overwriting default color in my buttons ... painful :-)

hereafter is some of my code. I didn't set the buttons as 'coz there was overwriting. I therefore tried to create buttons via JS but still it keeps overwriting.

Image


How can you change the swatch that a button uses inside a grid?

Posted: Tue Jul 08, 2014 12:08 pm
by Kateryna Grynko

Hi,

Could you please post an example how you would like these buttons to look?


How can you change the swatch that a button uses inside a grid?

Posted: Tue Jul 08, 2014 1:46 pm
by EJLD

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

Image


How can you change the swatch that a button uses inside a grid?

Posted: Wed Jul 09, 2014 1:29 am
by Yurii Orishchuk

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.


How can you change the swatch that a button uses inside a grid?

Posted: Wed Jul 09, 2014 6:51 am
by EJLD

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.


How can you change the swatch that a button uses inside a grid?

Posted: Wed Jul 09, 2014 7:45 am
by EJLD

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.

Image


How can you change the swatch that a button uses inside a grid?

Posted: Wed Jul 09, 2014 8:15 am
by Kateryna Grynko

Hi,

What is your app name?


How can you change the swatch that a button uses inside a grid?

Posted: Wed Jul 09, 2014 8:37 am
by EJLD

sorry,
here you are o2o4pw