Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@groupby/elements-base

groupby15MIT0.1.0TypeScript support: included

Functionality

readme

GroupBy Elements Base

Functionality

This class extends LitElement and is the class that all components will extend. Any shared functionality should be contained within this class.

Dispatching events

This class contains a generic event dispatch function, dispatchElementsEvent. The dispatchElementsEvent function constructs a CustomEvent with payload properties that are common across the GB Elements components. This function can be used across all components that extend Base to dispatch events.

Rendering the light DOM

All components that extend Base will render in the Light DOM.

Testing

The test suite for this component is contained in the test directory. To run the tests, navigate to this folder and use one of the following commands based on the desired testing flow:

  • To run the tests once:
yarn test
  • To run the tests and watch the src and test directories for changes:
yarn tdd

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.1.0] - 2019-11-29

Added

  • SFX-152: Added the Base class.
    • Base class is intended to be used as a parent class for all GB Elements components. It includes features such as allowing for slot functionality, and rendering the light dom.