You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.
Is there any other way to deal with this? I understand it's nessesary because of checkboxes or radios. But it ends up limiting my avility to extend and create more fields.
Thank you.
The text was updated successfully, but these errors were encountered:
It is much more simpler with templates like lumx and bootstrap. Label wrapper is independent from whichever type you use. It has own class and style, correct in any case.
In material templates it is much more complicated because mdInputContainer contains label.
I think it could be done with css class with proper selectors but I'm trying to avoid css files in that package.
I'm going to think about it and to try few things.
Maybe you have an idea to do it nicely?
About your question. It is good when wrapper can be used with all types. That's the reason of that ng-style thing :)
I've a custom field using ui.bootstrap datepicker. The option.type is "datepicker" so it doesn't work with this line here:
module.exports = "<label for=\"{{id}}\" ng-style=\"['input', 'textarea', 'select'].indexOf(options.type) === -1 && {'font-size':'12px', 'color': 'rgb(117, 117, 117)'}\">\n {{to.label}}\n</label>\n<formly-transclude></formly-transclude>\n";
I had to manually add my field to the array on
ng-style
so the label will work as expected.module.exports = "<label for=\"{{id}}\" ng-style=\"['input', 'textarea', 'select', 'datepicker'].indexOf(options.type) === -1 && {'font-size':'12px', 'color': 'rgb(117, 117, 117)'}\">\n {{to.label}}\n</label>\n<formly-transclude></formly-transclude>\n";
Is there any other way to deal with this? I understand it's nessesary because of checkboxes or radios. But it ends up limiting my avility to extend and create more fields.
Thank you.
The text was updated successfully, but these errors were encountered: