JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q51162F
  • License ISC

Generate a source mix for me automatically.

Package Exports

  • @ppci/choose-for-me

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ppci/choose-for-me) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Choose for me

Generate a source mix for a particular device.

Table of contents

  1. Installation
  2. Usage
  3. Properties

Installation

NPM

  npm i @ppci/choose-for-me

Usage

Javascript

import '@ppci/choose-for-me'

Browser

<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/choose-for-me/builds/index.min.js" />

<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/choose-for-me/builds/legacy.min.js" />

<choose-for-me
  deviceId="String"
  title="String"
  randomLabel="String"
  locationLabel="String"
  supplyLabel="String"
  weightLabel="String"
></choose-for-me>

Properties

Property Type Description Possible Values
*deviceId* String Generate a source mix for this device
*title* String Title of the button
randomLabel String Label of random option Generate randomly
locationLabel String Label of location option Generate by nearby location
weightLabel String Label of weight option Generate by weight
supplyLabel String Label of supply option Generate by supply