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

Issues with label wrapper styles. #20

Open
@juanpujol

Description

@juanpujol

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";

screenshot 2016-01-20 09 21 18

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";

screenshot 2016-01-20 09 20 18

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions