Question: why do you use a lot of different attributes for the "value" of a widget (in the model), rather than just using "value"?
See original GitHub issue- The value of a slider is stored in the
value
attribute of the model. - The value of a dropdown selector is stored in the
index
attribute of the model, andvalue
is not used. - The “value” of an output widget (list of output messages) is stored in the
output
attribute of the model. - … and potentially infinitely more variations.
Question: Is there a good reason for this? Are there situations where the value of a widgets involves multiple attributes in the model at once?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Attributes and properties - The Modern JavaScript Tutorial
sayHi(); // Hello, I'm BODY. So, DOM properties and methods behave just like those of regular JavaScript objects: They can have any value....
Read more ><input>: The Input (Form Input) element - HTML
The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of...
Read more >Django widget tweaks and variable attributes - Stack Overflow
I have tried to apply append_attr the newly created attribute but I'm seeing AttributeError: 'SafeString' object has no attribute 'as_widget' ...
Read more >Introduction to widgets - Flutter documentation
Flutter widgets are built using a modern framework that takes inspiration from React. The central idea is that you build your UI out...
Read more >Simple Chart Widget - Qualtrics
About Simple Chart Widgets. The simple chart widget allows you to display data in a range of basic charts. Changing the chart type,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the output widget - that indeed could have been
.value
instead of.outputs
. My mistake. Perhaps we can change it in ipywidgets 8.Closing as answered.