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

Is there a way to completely remove the label? #7

Open
liberumed opened this issue Aug 6, 2018 · 2 comments
Open

Is there a way to completely remove the label? #7

liberumed opened this issue Aug 6, 2018 · 2 comments

Comments

@liberumed
Copy link

Hello, nice module and thanks for sharing.
For now, I can customize the label with custom text like this: [text: ""] - but this option still draw a wrapper for labels and makes form element looks shifted. Is it possible to define an option to completely remove label tag?

@GBH
Copy link
Owner

GBH commented Aug 6, 2018

It's not really possible at the moment. Gotta structure rendering differently as removing label means adding offset class to the control container. One day I'll rewrite this to be closer to what I did here: https://github.com/comfy/comfy-bootstrap-form Keeping bootstrap specific options in its own map allows for greater flexibility.

For now, I suggest dropping down to Phoenix default form helpers in cases where you don't want to render labels.

@krystofbe
Copy link

krystofbe commented Jan 13, 2019

label: [style: "display: none"] also works as a workaround

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

No branches or pull requests

3 participants