Adako
Posts: 0
Joined: Wed Apr 09, 2014 8:46 pm

Using Appery Database, checking if a row exists, and do something if so, and something else if not!

Thanks Igor, just wanted to say the code works fine. I had it running from the wrong service.
One more thing how do you change the color of a button using CSS?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Using Appery Database, checking if a row exists, and do something if so, and something else if not!

Hi Adako,

We are glad that you got what you want.

To change button background (if we understood you right) with CSS you have to:
ol
liNavigate to the design tab of the page. And select the button./li

li In properties set "Class name" with value "yourButtonClassName". http://prntscr.com/3b1ph1/direct/li

liCreate CSS asset./li

li Add to this js asset following CSS:/li
precode

/* rule for default state */
html .ui-content .ui-btn.yourButtonClassName{
background-color: #f00;
background-image: initial;
}

/* rule for hover state */
html .ui-content .ui-btn.yourButtonClassName:hover{
background-color: #f0f;
background-image: initial;
}

/* rule for active state */
html .ui-content .ui-btn.yourButtonClassName:active{
background-color: #ff0;
background-image: initial;
}/code/pre
That's all.

After you run your app, you will get the same: http://prntscr.com/3b1syx/direct

Regards./ol

Return to “Issues”