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.

Controls: target single property as control inside an object

See original GitHub issue

When we used the knobs addon we could create knobs of an object’s property…

const timeTicks = {
   Month: 'month',
   Year: 'year',
   Quarter: 'quarter'
};

...

props: {
    config: {
        xAxis: {
            tickInterval: select('tickInterval', timeTicks, timeTicks.Month, 'config.xaxis'),
            legend: true,
        },
    },
},


...

Which resulted in the following knob:

image

As you can see is this a property (tickInterval) inside an object (config) but with its own knob, also it is grouped inside config.xaxis

Are both options grouping and a property inside an object as own control possible using the new controls addon??

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RobbertWolfscommented, Aug 20, 2020

Forgot to mention that I use angular instead of react

But I will see if I can get something like this to work 👍

0reactions
RobbertWolfscommented, Aug 20, 2020

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set the target property of a Label to an object within a custom ...
Bindings can only be created to PROPERTIES. But the UI elements nested in UserControl are FIELDS. Try adding a property. XAML:
Read more >
Control Class (System.Windows.Controls) - Microsoft Learn
Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. This is a dependency...
Read more >
Accessing Controls Within a Cluster Using a Property Node - NI
Create a constant for the input located in the top called Target Class. Click on the constant and select Generic»GObject»Control»<Your control ...
Read more >
Property accessors - JavaScript - MDN Web Docs - Mozilla
Property accessors provide access to an object's properties by using the dot notation or the bracket notation.
Read more >
Controls - Storybook - JS.ORG
Controls do not require any modification to your components. Stories for controls are: Convenient. Auto-generate controls based on React/Vue/Angular/etc.
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