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

Label customization #182

Open
riklaunim opened this issue Nov 20, 2017 · 3 comments
Open

Label customization #182

riklaunim opened this issue Nov 20, 2017 · 3 comments
Labels

Comments

@riklaunim
Copy link

Is there an option to customize label to a point of having a custom template? I want to have label text and next to it a tooltip which is bit of HTML and font-awesome icon.

@GCorbel
Copy link
Contributor

GCorbel commented Nov 24, 2017

Hello and sorry for the late answer. I think the best we can do at the moment is :

{{#em-form-group model=model property='clubName'}}
  {{em-form-label text='Label' for='club-name'}}
  {{input value=(mut (get model.setting 'clubName')) name='club-name' class='form-control'}}
{{/em-form-group}}

You have some properties of ember-rapid-forms and can do what you want inside the em-form-group block.

@riklaunim
Copy link
Author

ok, and what's the part responsible for showing validation errors?

@GCorbel
Copy link
Contributor

GCorbel commented Nov 27, 2017

There is no way to have error validation with this at the moment but I think it should no be difficult to add.

I you want to contribute, you can try to add the mixin InputComponentMixin in this file as it's done here. You will have to do some changes in the template and in the tests but it's not a big deal.

Do you want to contribute?

@spruce spruce added the question label Dec 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants