@ppci/source-list-item

0.2.9 • Public • Published

Source List Item

A source list item containing an avatar, title and a description.

Table of contents

  1. Installation
  2. Usage
  3. Theme | Styling
  4. Properties
  5. Events

Installation

NPM

  npm i @ppci/source-list-item

Usage

Javascript

import '@ppci/source-list-item'

Browser

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

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


<source-list-item
   image="String"
   title="String"
   description="String"
   categoryId="Number"
  energySubType="String">
></source-list-item>

Theme | Styling

source-list-item {
  --icon-color: white;
  --icon-background-color: gray;

   /*
    * Category color by id
    * 1: local
    * 2: social
    */
  --1-color: #32b4e9;
  --2-color: #ffa800;

  --icon-sun: '\\e9d4';
  --icon-wind: '\\e9c1';
  --icon-water: '\\e90b';
}

Properties

Property Type Description Possible Values
image String Image path of the source
*Tile* String Name of the source.
description String You can pass the city for example or something else related to the source.
categoryId String
energySubType String SUN | WIND | WATER

Events

Name Description Detail / Payload

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.90latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.00
0.1.100
0.1.90
0.1.80
0.1.70
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i @ppci/source-list-item

Weekly Downloads

0

Version

0.2.9

License

ISC

Unpacked Size

6.36 kB

Total Files

5

Last publish

Collaborators

  • fsevenhuysen
  • nazim.mohammed
  • gaalman
  • borai
  • franksevenhuysen