be-typed
v0.0.18
Published
Allow the user to customize input element during run time.
Downloads
243
Maintainers
Readme
be-typed (⚙️)
Allow the user to customize input element during run time.
Markup:
<label be-typed><span>[Specify Name]</span></label>
or
<label ⚙️><span>[Specify Name]</span></label>
- [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.
- [ ] Be able to specify :name for 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...
- Install git.
- Fork/clone this repo.
- Install node.js
- Install Python 3 or later
- Open command window to folder where you cloned this repo.
npm install
npm run serve
- Open http://localhost:8000/demo/ in a modern browser.
Running Tests
> npm run test
Using from CDN:
<script type=module crossorigin=anonymous>
import 'https://esm.run/be-typed';
</script>
Referencing via ESM Modules:
import 'be-typed/be-typed.js';