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.

Cannot remove controls from Canvas but keep property in Docs Page.

See original GitHub issue

I am working with a component that has quite a few properties, most of which do not need to have controls, but there doesn’t seem to be a way to remove the row from the canvas without also removing the property from the docs page.

Steps to Reproduce:

  1. Set a specific property’s control to false: foo: { control: false } } (according to documentation )
  2. Property still exists in row of controls but with a ‘-’ instead of a control
  3. Use foo: { table: { disable: true } } instead to try to remove the control from the Canvas
  4. Property is removed but it loses its documentation

Setting the control to false (or some other method) should hide it from the Canvas UI, but keep it in the docs for developers to access, instead of only removing the control itself or removing the entire row.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jaguadoariascommented, Sep 3, 2021

@scotch115 @shilman We have the same issue. We want to remove specific props from controls panel but keep them inside the documentation table. We also tried with foo: { control: false } }, with this, I can disable the prop in controls but it is still visible in the panel.

0reactions
jaguadoariascommented, Sep 6, 2021

Thanks @scotch115 we will try remixing the Docs Page.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Controls and properties in canvas apps - Microsoft Learn
Learn about properties of different controls in canvas apps. ... Camera – Take and save photos in the app or to a data...
Read more >
How can hide storybook control per story arg - Stack Overflow
You can disable controls for individual properties of a story including the prop table documentation, or you can disable only the control and...
Read more >
Stop, limit, or change sharing - Google Docs Editors Help
After you share a file, you can stop sharing at any time. You can also control if people you've shared with can change...
Read more >
Google Maps JavaScript API V3 Reference
This is an index of all the classes, methods, and interfaces in the Maps JavaScript API version 3.51 (weekly channel). This reference is...
Read more >
Illustrator workspace basics - Adobe Support
The toolbar contains tools for creating and editing images, artwork, page elements, and so on. Related tools are grouped. The Control panel ...
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