Skip to content

Input groups in a formgroup. #440

@johnwc

Description

@johnwc

I need to be able to add a input group, so that I can show a currency symbol before the input field. I have no way of doing that.

This is the call today.

@f.FormGroup().EditorFor(m => m.StartPrice).Label().HelpIcon()

I need something like so...

@f.FormGroup().EditorFor(m => m.StartPrice).AppendInputGroup("$").Label().HelpIcon()

and produce...

<div class="input-group">
  <span class="input-group-addon">$</span>
  <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions