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

read only text field #280

Closed
risalfajar opened this issue Sep 5, 2021 · 4 comments
Closed

read only text field #280

risalfajar opened this issue Sep 5, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@risalfajar
Copy link

Is your feature request related to a problem? Please describe.
In material documentation, there's a read only text field https://material.io/components/text-fields#input-types
But I can't find this implementation in SMUI

Describe the solution you'd like
Provide implementation for read-only textfield

Additional context
Add any other context or screenshots about the feature request here.
image

@risalfajar risalfajar added the enhancement New feature or request label Sep 5, 2021
@kasokz
Copy link

kasokz commented Sep 5, 2021

This should be implicitly controlled by the 'disabled' property. If you set disabled={true}, the CSS classes should automatically be set. At least that was the case in SMUI 2.0. I would expect it to have the same behavior since it is not mentioned in the Migration guides.

@risalfajar
Copy link
Author

I don't think read-only is the same with disabled, they have different implementations (you can view in the link i gave above)

image

@hperrin
Copy link
Owner

hperrin commented Sep 11, 2021

You can use input$readonly on the Textfield component.

@hperrin hperrin closed this as completed Sep 11, 2021
@mkyral
Copy link

mkyral commented Feb 11, 2022

Hi,
could this be implemented internally? So "readonly" attribute is mapped to "input$readonly"?
I've spent some time now with investigating code how to set Textfield readonly and finally I've found this, closed, issue with solution.

With missing documentation it is not a user friendly ;-)

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

No branches or pull requests

4 participants