UI drop down
From UBot Studio
(Difference between revisions)
(Created page with "This command is a UI Command. The command creates a drop down menu on the UI panel tied to a specific variable. == Example == <pre> load html(" <html> <body>...") |
|||
Line 25: | Line 25: | ||
</pre> | </pre> | ||
+ | |||
Placing the variable for the UI drop down command into the change attribute command changes the value of the drop down in the main browser to whatever value the UI on the interface is set to. | Placing the variable for the UI drop down command into the change attribute command changes the value of the drop down in the main browser to whatever value the UI on the interface is set to. | ||
+ | |||
[[File:uidropdown.png]] | [[File:uidropdown.png]] |
Revision as of 15:33, 14 April 2013
This command is a UI Command. The command creates a drop down menu on the UI panel tied to a specific variable.
Example
load html(" <html> <body> <form action=\"\"> <select name=\"Months\"> <option value=\"january\">January</option> <option value=\"february\">February</option> <option value=\"march\">March</option> <option value=\"april\">April</option> </select> </form> </body> </html> ") ui drop down("Select a Month:", "january,february,march,april", #months) change attribute(<name="Months">, "value", #months)
Placing the variable for the UI drop down command into the change attribute command changes the value of the drop down in the main browser to whatever value the UI on the interface is set to.