Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/advanced-rest-client/api-property-form-item

⛔️ DEPRECATED This component is being deprecated. Use `api-request` instead.
https://github.com/advanced-rest-client/api-property-form-item

deprecated obsolete

Last synced: 9 days ago
JSON representation

⛔️ DEPRECATED This component is being deprecated. Use `api-request` instead.

Awesome Lists containing this project

README

        

[![Published on NPM](https://img.shields.io/npm/v/@api-components/api-property-form-item.svg)](https://www.npmjs.com/package/@api-components/api-property-form-item)

[![Build Status](https://travis-ci.org/advanced-rest-client/api-property-form-item.svg?branch=stage)](https://travis-ci.org/advanced-rest-client/api-property-form-item)

## <api-property-form-item>

An input to use with forms to render inputs based in ARC view-model

```html

```

## Deprecation notice

This element is moved to `api-forms` repository and `@api-components/api-forms` package. This element will be deprecated and archived once the migration finish.

## Usage

### Installation

```sh
npm install --save @api-components/api-property-form-item
```

### In an html file

```html



import '@api-components/api-property-form-item/api-property-form-item.js';





{
document.querySelector('api-property-form-item').model = {
schema: {
inputLabel: 'Enter number value',
inputType: 'number',
minimum: 1,
maximum: 100
}
};
}

```

### In a LitElement

```js
import { LitElement, html } from 'lit-element';
import '@api-components/api-property-form-item/api-property-form-item.js';

class SampleElement extends PolymerElement {
render() {
return html`

`;
}

_handleHande(e) {
this.inputValue = e.target.value;
}
}
customElements.define('sample-element', SampleElement);
```

### Base styles

The element provides 3 basic styling options:

- Filled - Material design filled style, default style
- Outlined - Material design outlined style, use `outlined` property
- Legacy - Anypoint style, use `legacy` property

```html

```

## Running the demo locally

```sh
npm start
```

## Running the tests

```sh
npm test
```

## API components

This components is a part of [API components ecosystem](https://elements.advancedrestclient.com/)