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.

Boolean control type does not appear

See original GitHub issue

I’m using the basic example from Blocks UI documentation, as such:

const Component = ({ isTomato, ...props }) => (
	<h1
		{...props}
		style={{
			color: isTomato ? 'tomato' : 'inherit'
		}}
	/>
)

applyPropertyControls(Component, {
	isTomato: {
		type: ControlType.Boolean,
		title: 'Tomato'
	}
})

Yet, the isTomato prop does not appear for me in the editor panel.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
blenderskoolcommented, Mar 8, 2020

@johno Can I try working on this?

0reactions
cheng-kangcommented, May 11, 2020

@blenderskool @johno didn’t see a PR yet so just raised one, hope you don’t mind

Read more comments on GitHub >

github_iconTop Results From Across the Web

boolean control disappears - NI Community
All of a sudden I find that when ever I place a boolean control on one particular area of the front panel and...
Read more >
Control boolean with default value in component is ... - GitHub
We see the control set to true and the component display true . After toggling true/false storybook behavior is as expected.
Read more >
What column type to use as boolean supported by Power Apps
Solved: I am trying to create a custom column in Dataverse to store a boolean value. I'm making a power app which pulls...
Read more >
c# - boolean fields in a model are not being updated in the ...
c# - boolean fields in a model are not being updated in the controller when the data is sent - Stack Overflow. Stack...
Read more >
Boolean controls - LabVIEW Wiki
The Boolean text is a set of up to four strings that can represent the state of the Boolean control. If the text...
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