You need to sign in to do that
Don't have an account?
Jérôme Gloton
Styling UI:input
Hi everyone,
I'm trying to style my first form in a Lightning Component and I'm having problems with the ui:input. For exemple: with the ui:inputDate the label has a line break before the input when the ui:inputSelect has no line break... could someone explain this to me and how I can put a line break for every type of ui:input.
I'd rather use the ui:input instead of the HTML input because of the <input type="date" /> that doesn't work properly on every browsers...
I would be happy to share your knowledge on the subject,
Thanks in advance and sorry if this question has already been asked
I'm trying to style my first form in a Lightning Component and I'm having problems with the ui:input. For exemple: with the ui:inputDate the label has a line break before the input when the ui:inputSelect has no line break... could someone explain this to me and how I can put a line break for every type of ui:input.
I'd rather use the ui:input instead of the HTML input because of the <input type="date" /> that doesn't work properly on every browsers...
I would be happy to share your knowledge on the subject,
Thanks in advance and sorry if this question has already been asked
In case of ui:inputSelect component you can do the following:
and then change the style in your component style file: If you need to change the HTML rendered from these components, you can do DOM Modifications using Component Renderer files.
All Answers
In case of ui:inputSelect component you can do the following:
and then change the style in your component style file: If you need to change the HTML rendered from these components, you can do DOM Modifications using Component Renderer files.
I've managed to do what I want thanks to your answers!