Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add a read-only properties #88

Open
Ludy2015 opened this issue Jun 7, 2022 · 3 comments
Open

Please add a read-only properties #88

Ludy2015 opened this issue Jun 7, 2022 · 3 comments

Comments

@Ludy2015
Copy link

Ludy2015 commented Jun 7, 2022

Please add a read-only properties~~~

@Ludy2015 Ludy2015 changed the title Please add a read-only attribute Please add a read-only properties Jun 7, 2022
@Frezyx
Copy link
Owner

Frezyx commented Jul 3, 2022

Hello @Ludy2015
I don't understand you

@JulianSwales
Copy link

I'll second this. Unless there a way to do it already. I have a form, that I display to a user with a group button on it. I use the same form for view and edit. They have to click an edit button, so the form starts out in read only mode, and switches to edit mode. At least that's the idea. On my other fields they have ways to make them read only. Either a read only attribute or setting the select option to null, etc.

@JulianSwales
Copy link

What I've done to sort of address this is disable each button (using disabled indexes) when in read only mode, then when the state changes, re-enable each button. The problem with this is it doesn't maintain the text properties (colours etc) setting them to null because the button isn't enabled.
On most of the other input widgets I use, they have a readOnly property (true/false) which I put a state management element into, since I generally use one view for customers to view and then edit a form, using an edit toggle. .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants