npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@forter/form-field

v1.16.0

Published

form-field from Forter Components

Downloads

430

Readme

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

| Property | Attribute | Type | Default | Description | |----------------------|----------------------|--------------------------------------------------|---------|--------------------------------------------------| | allowOtherOption | allow-other-option | string | | The additional "other" value in case of fields with multiple options that allow adding custom value | | boldable | boldable | boolean | false | If the field is boldable | | chipsType | chips-type | boolean | | Type of the chips (example: "more") | | clearable | clearable | boolean | false | If the field is clearable | | currencysymbol | currencysymbol | string | | Currency symbol to show in currency type input field (example: "$", "₪") | | dirty | dirty | boolean | false | If the field is dirty | | disabled | disabled | boolean | false | If the field is disabled | | extended | extended | boolean | false | If fc-input width should be extended | | format | format | string | | Date Format. default: MM/DD/YYYY, example: DD MMM YYYY HH:mm | | hideResize | hideResize | boolean | false | If hide resize in textarea | | label | label | string | | Label of the field | | max | max | number | | Validate minimum of number value | | maxlength | maxlength | number | | Validate maxlength of string value | | menu | menu | boolean | | Whether or not the chips menu is enabled | | min | min | number | | Validate minimum of number value | | minlength | minlength | number | | Validate minimum length of string value | | options | options | any[] | | | | otherOptionValue | other-option-value | string | | The additional "other" value in case of fields with multiple options that allow adding custom value | | path | path | string | | Path of the the field what will be set on the fc-form model (example: "user.firstName", "user.email") | | pattern | pattern | any[] | | Pattern validation | | placeholder | placeholder | string | | Placeholder in case of input types when no value | | readonly | readonly | boolean | false | If the field is readonly | | renderErrorMessage | | "" \| TemplateResult[] | | | | required | required | string | | Setter for single value field | | rows | rows | boolean | "2" | Rows in textarea | | singleSelection | single-selection | boolean | false | If multi field allow choosing only single value | | type | type | "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. | | valid | valid | boolean | true | Internal Observables | | validations | validations | any[] | | List of the validation name to run when value is changed | | value | value | string | | Setter for single value field | | values | values | any[] | | Setter for multi values field | | warning | warning | "" \| TemplateResult | | |

Events

| Event | |-----------------| | field-removed |

CSS Custom Properties

| Property | Description | |----------------------------------|---------------------------------| | --fc-form-field-disabled-color | disabled color. example: gray |