Basically an extension of Ember's native Input component, but applies some Bootstrap styling. See Ember Input documentation for more information.

If you want input-group-addons, you will need to pass them into the component like so. This is to ensure that the character count doesn't mess with the addon. Note that you should not wrap it in the 'input-group' class, as that is done within the component:

<FwInput @value={{myVariable}} @update={{action (mut myvariable)}} as |section|>
    {{#if section.prepend}}
        {{!-- insert prepend addon here --}}
    {{else if section.append}}
        {{!-- inset append addon here --}}
    {{/if}}
</FwInput>
Show:
didInsertElement () private

After the elements have been inserted into the DOM, this function focuses upon this input (meaning that the cursor is automatically in it)

focus

Boolean

This is the only added attribute to the Ember input. If true, it will focus on the input when the page loads.


Default: false

maxCount

Boolean

Sets the limit of how many characters are allowed to be typed. Whichever of maxlength or maxCount is greater will determine the actual limit, but the count will display as negative and red if maxlength is surpassed.


Default: 200

maxlength

Number

Sets the limit that will be displayed. See also maxCount.


Default: 200

placeholder

String

This is an optional attribute that changes the placeholder of the input (the grey text which appears if the textarea is empty).


Default: null

showCount

Boolean

If true, number of characters remaining will appear below the input, on the right.


Default: true

update

Action

This attribute takes the action which is called whenever the value is changed. It is always used with the native handlebars action helper, and is often used with the native handlebars mut helper (as seen in the example above).

value

String

The variable that is the value of the input (the information displayed in it).


Default: null