ember-form-master-2000 icon indicating copy to clipboard operation
ember-form-master-2000 copied to clipboard

Append widget classes to defaults

Open utilityboy opened this issue 8 years ago • 1 comments

Given an fm-submit with default class of btn btn-primary it would be nice to be able to do the following:

{{fm-submit value='Submit' class='float-right'}}

and have it generate

<button type="submit" value="Submit" class="btn primary float-right">

Is there a way to do this through some other means?

utilityboy avatar Apr 14 '16 16:04 utilityboy

@utilityboy You can hack around this right now with submitButtonClass='btn primary float-right' but I agree that is not ideal. Do any of bootstrap/semantic/etc. actually put a wrapper around a submit button. I think maybe fm-submit should render as a button with no wrapper. Then you could manipulate classes directly. Any thoughts @Emerson?

g-cassie avatar Apr 16 '16 00:04 g-cassie