Buttons in task settings

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Buttons in task settings

#1 Post by cherowley » 18 May 2019, 13:54

Hi!

Is it possible to add buttons to the settings of a task plugin screen?

I'm doing a new plugin whereby it would be great to have some plus minus buttons on the plugin settings web screen to set plugin values...

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Buttons in task settings

#2 Post by grovkillen » 18 May 2019, 13:59

Yes but you might need to add some HTML functions to make it work the way you want.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Re: Buttons in task settings

#3 Post by cherowley » 18 May 2019, 14:12

Can this be done in the plugin without modifying the web server or other standard code?

My current plugin relied on my changes to the webserver.ino to add a few new webserver.on events you see and I want to rewrite for mega version and make it a standard plugin at the same time...

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Buttons in task settings

#4 Post by grovkillen » 18 May 2019, 14:37

So you should study current form implementation of plugins. Many examples are already present.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Re: Buttons in task settings

#5 Post by cherowley » 18 May 2019, 14:47

Ah right, sorry vould you point me to a plugin which has plus minus buttons in the web page? Can't see one for looking lol!

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Buttons in task settings

#6 Post by grovkillen » 18 May 2019, 16:07

Plus/minus no but it's plain HTML so feel free to be inspired by it. Simple numerical input got plus/minus out of the box.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

cherowley
Normal user
Posts: 125
Joined: 14 Jan 2016, 09:39

Re: Buttons in task settings

#7 Post by cherowley » 18 May 2019, 23:46

Cool, used the html like you suggested as I wanted the clicking of +- to have immediate effect, cheers :)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 73 guests