Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

templateOptions.readonly attribute #47

Open
ivopan opened this issue Jul 5, 2016 · 6 comments
Open

templateOptions.readonly attribute #47

ivopan opened this issue Jul 5, 2016 · 6 comments

Comments

@ivopan
Copy link

ivopan commented Jul 5, 2016

It would be very useful to be able to add ng-readonly attribute to some (all) generated input tags. I figured no way to do that by some "hack". It differs from "disable" visually by color (at least). Making full form readOnly in firmly style does not seem to work in material version, perhaps only in bootstrap.

@sciborrudnicki
Copy link

sciborrudnicki commented Jul 5, 2016

Hi ivopan, do you want to help create similar product ?

@kamilkisiela
Copy link
Collaborator

@Diabeu27 isn't it easier to maintain just one package? You can always create a Pull Request to add a new feature or something.

@kamilkisiela
Copy link
Collaborator

This is how open source works

@ivopan
Copy link
Author

ivopan commented Jul 6, 2016

I tried to implement it myself - no success, I am not javascript+angular professional.
But I found solution, which is quite suitable for me:

                    type : 'string',
                    label : 'SomeLabel',
                    myReadonly : true
                },
                ngModelAttrs : {
                    myReadonly : {
                        bound : 'ng-readonly',
                        attribute : 'ng-readonly'
                    }
                },

@sciborrudnicki
Copy link

i will add some features to this repo, soon.

@sciborrudnicki
Copy link

sciborrudnicki commented Jul 14, 2016

https://github.com/wieldo/formlyMaterial - i am still working on it

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

No branches or pull requests

3 participants