This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Smartphone and Wiser
#1
Hello Everyone,

How can I change the color of the button. I'd like it red.

Also
Can I change the symbols (in the button) I'd like to swap them.
I've checked if the object can change polarity - it can't.


https://imgbb.com/upload

Thanks
Reply
#2
You didn't provide a screenshot.
Reply
#3
There it is.
https://ibb.co/QQynYPb
Reply
#4
Set Additional class to btn-inversed

Add to Custom CSS:
Code:
.touch .btn-inversed .btn-success {
  background-image: none;
  background-color: red;
}

Add to Custom JavaScript:
Code:
$(function() {
  $('.touch .btn-inversed').each(function(_, el) {
    var $el = $(el), addr = $el.data('status-object'), btn = $el.find('.btn');
    
    grp.listen(addr, function(obj) {
      setTimeout(function() {
        btn.text(obj.value ? '×' : '✓');
      }, 1);
    });
  });
});
Reply
#5
Excellent
Thank you Big Grin
Reply


Forum Jump: