1.15.2 • Published 6 months ago

@forter/form-field v1.15.2

Weekly downloads
48
License
Apache-2.0
Repository
github
Last release
6 months ago

fc-form-field

An element that contained field by different types

Usage

<script>
   import '@forter/form-field';
</script>

<fc-form-field>
</fc-form-field>

Examples

<!-- field options -->
<fc-form-field type="
" .options="${['foo','bar']}"></fc-form-field>
<!-- input with warning -->
<fc-form-field type="number" label="foo" warning="Low Amount"></fc-form-field>
<!-- select with warning -->
<fc-form-field type="dropdown" label="foo" warning="Low Amount"></fc-form-field>

Properties

PropertyAttributeTypeDefaultDescription
allowOtherOptionallow-other-optionstringThe additional "other" value in case of fields with multiple options that allow adding custom value
boldableboldablebooleanfalseIf the field is boldable
chipsTypechips-typebooleanType of the chips (example: "more")
clearableclearablebooleanfalseIf the field is clearable
currencysymbolcurrencysymbolstringCurrency symbol to show in currency type input field (example: "$", "₪")
dirtydirtybooleanfalseIf the field is dirty
disableddisabledbooleanfalseIf the field is disabled
extendedextendedbooleanfalseIf fc-input width should be extended
hideResizehideResizebooleanfalseIf hide resize in textarea
labellabelstringLabel of the field
maxmaxnumberValidate minimum of number value
maxlengthmaxlengthnumberValidate maxlength of string value
menumenubooleanWhether or not the chips menu is enabled
minminnumberValidate minimum of number value
minlengthminlengthnumberValidate minimum length of string value
optionsoptionsany[]
otherOptionValueother-option-valuestringThe additional "other" value in case of fields with multiple options that allow adding custom value
pathpathstringPath of the the field what will be set on the fc-form model (example: "user.firstName", "user.email")
patternpatternany[]Pattern validation
placeholderplaceholderstringPlaceholder in case of input types when no value
readonlyreadonlybooleanfalseIf the field is readonly
renderErrorMessage"" \| TemplateResult[]
requiredrequiredstringSetter for single value field
rowsrowsboolean"2"Rows in textarea
singleSelectionsingle-selectionbooleanfalseIf multi field allow choosing only single value
typetype"number" \| "text" \| "tags" \| "dropdown" \| "date" \| "button-group" \| "currency" \| "select" \| "textarea" \| "chips" \| "segmented-control" \| "radio-group""text"Type of the field - can be existing types such as: text, number, tags, dropdown or name of the type in the 'custom-renderers' object passed to fc-form.
validvalidbooleantrueInternal Observables
validationsvalidationsany[]List of the validation name to run when value is changed
valuevaluestringSetter for single value field
valuesvaluesany[]Setter for multi values field
warningwarning"" \| TemplateResult

Events

Event
field-removed

CSS Custom Properties

PropertyDescription
--fc-form-field-disabled-colordisabled color. example: gray
1.15.2

6 months ago

1.15.1

11 months ago

1.15.0

2 years ago

1.14.2

2 years ago

1.14.1

2 years ago

1.14.0

2 years ago

1.13.1

2 years ago

1.12.9

2 years ago

1.12.10

2 years ago

1.13.0

2 years ago

1.12.7

2 years ago

1.12.8

2 years ago

1.12.6

2 years ago

1.12.5

2 years ago

1.12.4

2 years ago

1.12.3

2 years ago

1.12.2

2 years ago

1.12.1

2 years ago

1.12.0

3 years ago

1.11.2

3 years ago

1.11.0

3 years ago

1.11.1

3 years ago

1.9.1

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.15

3 years ago

1.5.14

3 years ago

1.5.13

3 years ago

1.5.12

3 years ago

1.5.10

3 years ago

1.5.11

3 years ago

1.5.9

4 years ago

1.5.8

4 years ago

1.5.7

4 years ago

1.5.6

4 years ago

1.5.5

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago