Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pie-framework/embed-pivot

embed pivot custom element
https://github.com/pie-framework/embed-pivot

Last synced: about 1 month ago
JSON representation

embed pivot custom element

Awesome Lists containing this project

README

        

# Embed pivot

A very simple custom element that renders a pivot iframe.

### Install

```shell
yarn
```

### Run

```shell
yarn esbuild src/embed-pivot.ts --servedir=. --outdir=lib --bundle
```
Then go to: http://localhost:8000/dev/

### Release

`yarn release`

#### release from local machine

```
yarn build
yarn semantic-release --no-ci
```

## Attributes

| Attribute | Description
| ------------------------ | -----------------------------------------------------------
| data-url | the url to load that contains an element definition
| data-tag | the tag name to use for the newly defined custom element
| data-height | OPTIONAL: the height for the video
| data-width | OPTIONAL: the width for the video
| data-min-height | OPTIONAL: the minimum height for the video
| data-max-height | OPTIONAL: the maximum height for the video
| data-min-width | OPTIONAL: the minimum width for the video
| data-max-width | OPTIONAL: the maximum width for the video

## Usage

```html

```
OR
```html


```

For any page that needs to run pie-embed, you have to load pie-api-components@>=2.2.1. This page:

```shell script

```