We’d like you to use our simple, fake javascript framework to create a widget that handles some linked checkboxes. You'll find examples of other widgets in this repo, which you may use to guide you and to figure out how the framework functions. Requirements Create a 'linked checkbox' that allows a user to check or uncheck all of the related checkboxes simultaneously. The controlling checkbox will have three states: a checked state, an unchecked state, and an intermediary state. When controlling checkbox is unchecked: if the user clicks on a related checkbox, that checkbox becomes checked, and the controlling checkbox remains unchecked. if the user clicks on the controlling checkbox, it becomes checked and related checkboxes become checked. When the controlling checkbox is checked: if the user clicks on the controlling checkbox, it becomes unchecked, and all related checkboxes become unchecked. if the user clicks on a related checkbox, that checkbox becomes unchecked, and the controlling checkbox enters the intermediary state. When the controlling checkbox is in the intermediary state: if the user clicks on the controlling checkbox, it becomes unchecked, and all related checkboxes become unchecked. if the user clicks on a checked related checkbox, the controlling checkbox remains in the intermediary state unless there are no more checked related boxes, in which case it returns to the unchecked state. if the user clicks on an unchecked related checkbox, the controlling checkbox remains in the intermediary state unless there are no more unchecked related boxes, in which case it returns to the checked state. please send the solution asap

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

We’d like you to use our simple, fake javascript framework to create a widget that handles some linked checkboxes. You'll find examples of other widgets in this repo, which you may use to guide you and to figure out how the framework functions. Requirements Create a 'linked checkbox' that allows a user to check or uncheck all of the related checkboxes simultaneously. The controlling checkbox will have three states: a checked state, an unchecked state, and an intermediary state. When controlling checkbox is unchecked: if the user clicks on a related checkbox, that checkbox becomes checked, and the controlling checkbox remains unchecked. if the user clicks on the controlling checkbox, it becomes checked and related checkboxes become checked. When the controlling checkbox is checked: if the user clicks on the controlling checkbox, it becomes unchecked, and all related checkboxes become unchecked. if the user clicks on a related checkbox, that checkbox becomes unchecked, and the controlling checkbox enters the intermediary state. When the controlling checkbox is in the intermediary state: if the user clicks on the controlling checkbox, it becomes unchecked, and all related checkboxes become unchecked. if the user clicks on a checked related checkbox, the controlling checkbox remains in the intermediary state unless there are no more checked related boxes, in which case it returns to the unchecked state. if the user clicks on an unchecked related checkbox, the controlling checkbox remains in the intermediary state unless there are no more unchecked related boxes, in which case it returns to the checked state.

please send the solution asap  

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Block Comments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage