question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Questions about options attribute

See original GitHub issue

Hi 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:open
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nighcodercommented, Oct 6, 2020

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 for dragging, but I don’t see it used lower in code, only _dragging.

0reactions
martinRenoucommented, Oct 12, 2020

Indeed there are some issues with those attributes. Do you mind opening a separate issue for that? It seems unrelated to the original discussion.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found