Page 3 of 3

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

Posted: Thu Jul 10, 2014 12:30 am
by Yurii Orishchuk

Hello,

Please use following code instead of yours: http://prntscr.com/415ai4/direct

precode

<center>
<table>
<tr>
<td><div id="cell1" class="EcoButton">Economy<> </td>
<td><div id="cell2" class="HisButton">History<> </td>
<td><div id="cell3" class="CurButton">Currency<> </td>
</tr>
</table>
</center>

<script>

&#47;&#47; Eco Button
var buttonEco = document&#46;getElementById("cell1");
$( "&#46;EcoButton" )&#46;button({ theme: "b" });

&#47;&#47; His Button
var buttonHis = document&#46;getElementById("cell2");
$( "&#46;HisButton" )&#46;button({ theme: "d" });

&#47;&#47; Cur Button
var buttonCur = document&#46;getElementById("cell3");
$( "&#46;CurButton" )&#46;button({ theme: "e" });

</script>

/code/pre

After you will get following result: http://prntscr.com/415a7c/direct

Regards


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

Posted: Thu Jul 10, 2014 4:17 am
by EJLD

Thks Yurii,
it does work.
I would never have looked into that div direction.
hv a good day