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.

Read only boolean not working

See original GitHub issue
// getCellContent()
return {
  kind: GridCellKind.Boolean,
  data: false,
  allowEdit: false,
  allowOverlay: false,
}
// onCellEdited()
([row, col], value) => {
  console.log("SHOULD NOT HAPPEN!")
}

How do I make a readonly Boolean cell?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jassmithcommented, Apr 21, 2022

Fixed in 4.0.3, it would be nice to get a PR up for readonly but at least the behavioral issue is fixed.

0reactions
jassmithcommented, Apr 17, 2022

Yes but both flags must work. If both are set readonly takes precedence.

On Sat, Apr 16, 2022 at 11:31 PM Adithya Dsilva @.***> wrote:

I can help. Shall I add a readonly flag, and mark allowEdit as depreciated?

— Reply to this email directly, view it on GitHub https://github.com/glideapps/glide-data-grid/issues/268#issuecomment-1100814736, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHN2ZIRK27KSK2DO2X44DVFOV5FANCNFSM5TS3AUWQ . You are receiving this because you commented.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting readonly attribute works when set to a boolean value ...
I'm trying to make the property Phone readonly, if the QRType is not equal to Contact or Phone (QRType is an enum):
Read more >
Setting read-only rules on a Boolean field causes an error ...
I have set a rule to make a Boolean field on a Work Item as read-only apart from one group however nobody else...
Read more >
The Boolean modifier is not working - Blender Stack Exchange
I want to cut holes in the mag with that mesh. But the magazine just goes invisible or connects with the mesh when...
Read more >
Boolean + readonly does not work. · Issue #1677 - GitHub
I'm trying to disable a Boolean field, but it is displayed without a readonly attribute and therefore still toggleable/usable.
Read more >
PM44975: [wi 173128] Read only boolean attribute is ... - IBM
Read -only Boolean attribute is not read-only in Web UI. In Eclipse client, it is read-only as expected.
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