Questions about options attribute
See original GitHub issueHi everyone,
I’ve been working on getting the ipyleaflet
models to clojure kernel and getting the right values of options
attribute of each model was the most error prone part.
Which made me wonder, how is the end user expected to use the options
attribute on the python side?
Is there any useful example of passing a custom options list to the widget constructor, like Map(options=[foo, bar, baz])
?
Is there any useful example of using the widget’s default options
and mutate it after initializing?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Customizing Question Attributes and Templates
This page is an overview of how to hide or display attributes and sections in Question types via the init options. There are...
Read more >Brand Attributes: Surveys & example questions | SurveyMonkey
Do you know what brand attributes your customers are looking for? Identify and understand your brand attributes with our brand attribute surveys today....
Read more >The HTML Option element - MDN Web Docs - Mozilla
This attribute is text for the label indicating the meaning of the option. If the label attribute isn't defined, its value is that...
Read more >Randomize options and attributes in list question
Each option has 2 variables with various attributes that need to be randomized for each respondent. See below for an example, hopefully a...
Read more >Proper use of lightning:select's value attribute and child ...
My question is, what is the purpose of using both the value attribute on the lightning:select element and the selected attribute on option...
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
I also noticed something wich looks like a bug. If I declare the widget, render it, drag the map, then look at the state of the widget, there’s a new key there named:
:_dragging
.I’ve checked the clojure code and I don’t use the
:_dragging
key anywhere, only:dragging
which should mirror the python property. My guess is that the JavaScript is sending this property in a msg-update, since I see it defined here. Note that the JavaScript code includes also a definition fordragging
, but I don’t see it used lower in code, only_dragging
.Indeed there are some issues with those attributes. Do you mind opening a separate issue for that? It seems unrelated to the original discussion.