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

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

Define a web component declaratively.
https://github.com/bahrus/be-definitive

custom-element custom-elements declarative-custom-element web-component web-components

Last synced: 4 months ago
JSON representation

Define a web component declaratively.

Awesome Lists containing this project

README

          

# be-definitive () [TODO]

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

Example 1: Inferred props

```html

NameSSN Number


Burt
123-45-6789








```

Only clone the template for other tr's if innerHTML is empty.

```html

NameSSN Number





Burt

123-45-6789


654 Penny Lane
345-25-2686<


```

automatically captures the template based on itemref's. Auto expands others

## Viewing this element locally

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

## Running Tests

```
> npm run test
```

## Importing in ES Modules:

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

## Using from CDN:

```html

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

```