ember-rapid-forms icon indicating copy to clipboard operation
ember-rapid-forms copied to clipboard

Label customization

Open riklaunim opened this issue 8 years ago • 3 comments

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.

riklaunim avatar Nov 20 '17 12:11 riklaunim

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.

GCorbel avatar Nov 24 '17 16:11 GCorbel

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

riklaunim avatar Nov 27 '17 12:11 riklaunim

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?

GCorbel avatar Nov 27 '17 13:11 GCorbel