Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Changing Button Names. #5

Open
ghost opened this issue Sep 8, 2015 · 6 comments
Open

About Changing Button Names. #5

ghost opened this issue Sep 8, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Sep 8, 2015

Hi,
Could i change the Button Name by changing ">ON" (I mean that "ON" in that line) in aREST_UI.h :


// Buttons UI
for (int i = 0; i < buttons_index; i++) {
  addToBuffer("<div class=\"row\">");
  addToBuffer("<div class=\"col-md-2\"><button class=\"btn btn-block btn-lg btn-primary\" id='btn_on");
  addToBuffer(buttons[i]);
  addToBuffer("'>On</button></div>");
  addToBuffer("<div class=\"col-md-2\"><button class=\"btn btn-block btn-lg btn-danger\" id='btn_off");
  addToBuffer(buttons[i]);
  addToBuffer("'>Off</button></div>");
  addToBuffer("</div>");
}

I Hope i am Correct?

@marcoschwartz
Copy link
Owner

Indeed, but then you'll need to make this change everytime I release a new version of the library so it's not really convenient. Marked this as an enhancement request, I'll work on this in the future version :)

@leapearson
Copy link

Hi
Is it possible to chnge the appearance of the buttons? If so, where can I do this?
Also, instead of having 2 buttons (on & off) could I use a single button and recognise Mousedown & mouseup events?

Thanks

Lea

@marcoschwartz
Copy link
Owner

Hi Lea, for now no but I'll keep the suggestions as well!

@bill-orange
Copy link

Yes, this is important for me too. My LEDs are hooked up such that 0 is on. Thus, Off is On and On is Off.

Has this been done? This is kind of an old post.

@marcoschwartz
Copy link
Owner

Not yet as I am mainly focused on the aREST cloud, but if anybody want to implement this I'd be happy to look at it :)

@jmartens2
Copy link

hi i know this an old thread but can i change static state of (1 or 0) pushbuttons in
arest_ui.h on lines 178, 183? can i reverse order (make on=0 and off-1)?
i need to provide 0 to turn on esp8266 relay bord with 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants