Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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/

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

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

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

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

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

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

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

Hi,

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

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

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

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

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

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.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

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

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

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

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

Hi,

What is your app name?

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

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

sorry,
here you are o2o4pw

Return to “Issues”