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.

Support for readonly field

See original GitHub issue

It would be useful when ID field has to be shown. Currently user can change the field and it saves a new object to database.

id: {
  "type": "string",
  "readonly": true
},

Disabled form fields wont be returned, just adding disabled wont work I guess 😦

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pateketruekecommented, Jun 13, 2017

It would be awesome if I can remove some properties using a keyword.

The ability to have some fields as hidden, and also some fields completely skipped from rendering is very helpful.

Optional fields should be optional to render too.

0reactions
idelvallcommented, Jun 13, 2017

This is a great suggestion @pateketrueke , i will have it in mind for the v2 branch I am currently working on. I will come back to you when the v2 is ready. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML input readonly Attribute
The readonly attribute is a boolean attribute. When present, it specifies that an input field is read-only. A read-only input field cannot be...
Read more >
readonly attribute of input and textarea elements
readonly attribute of input and textarea elements ... Makes the form control non-editable. Unlike the disabled attribute, readonly form controls are still ...
Read more >
Read-Only Fields
They are useful for displaying default values or totals that you don't want the user to be able to edit but that you...
Read more >
readonly keyword - C# Reference
In a field declaration, readonly indicates that assignment to the field can only occur as part of the declaration or in a constructor...
Read more >
Make fields readonly | ReSharper Documentation
Add the 'readonly' keyword to fields that only have read access · Set the caret anywhere in the file to make fields readonly...
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