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

https://github.com/bahrus/be-typed

Allow the user to customize input element during run time.
https://github.com/bahrus/be-typed

Last synced: about 2 months ago
JSON representation

Allow the user to customize input element during run time.

Awesome Lists containing this project

README

        

# be-typed (⚙️)

Allow the user to customize input element during run time.

[![Playwright Tests](https://github.com/bahrus/be-typed/actions/workflows/CI.yml/badge.svg?branch=baseline)](https://github.com/bahrus/be-typed/actions/workflows/CI.yml)
[![NPM version](https://badge.fury.io/js/be-typed.png)](http://badge.fury.io/js/be-typed)
[![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/be-typed?style=for-the-badge)](https://bundlephobia.com/result?p=be-typed)

## Markup:

```html
[Specify Name]
```

or

```html
[Specify Name]
```

- [x] Adds edit button inside label.
- [x] Edit button opens dialog that allows user to select type of input (boolean, number, etc).
- [x] Can also specify validation attributes
- [x] Dialog also supports selecting name of input element.
- [x] Be able to specify :name for [be-reformable](https://github.com/bahrus/be-reformable), so it becomes part of path or header

## Viewing this element locally

Any web server than can serve static files will do, but...

1. Install git.
2. Fork/clone this repo.
3. Install node.js
4. Install Python 3 or later
5. Open command window to folder where you cloned this repo.
6. > npm install
7. > npm run serve
8. Open http://localhost:8000/demo/ in a modern browser.

## Running Tests

```
> npm run test
```

## Using from CDN:

```html

import 'https://esm.run/be-typed';

```

## Referencing via ESM Modules:

```JavaScript
import 'be-typed/be-typed.js';
```