@paprika/data-header
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

@paprika/data-header

Description

Data header package is a set of components that help the Table and DataGrid to enhance the cell property to display different header types in a ease manner

Installation

yarn add @paprika/data-header

or with npm:

npm install @paprika/data-header

Props

DataHeader

Prop Type required default Description
backgroundColor string false null
color string false null
label [func,string] true -
renderActions func false null
type [ types.type.TEXT, types.type.NUMERIC, types.type.DATE, types.type.DATE_TIME, types.type.TIME] false null
icons object false null

DataHeader

The <DataHeader /> component helps consumer to deal with header with the <Table /> and <DataGrid /> components.

With this component you have access to three major features: render Label via a string or function, render an action button/menu at the right side of the header or render an icon type before the label.

The component looks like:

<DataHeader label={string|function} type={:string} renderActions={:function} />

Links

Readme

Keywords

none

Package Sidebar

Install

npm i @paprika/data-header

Weekly Downloads

41

Version

4.0.2

License

MIT

Unpacked Size

24.7 kB

Total Files

11

Last publish

Collaborators

  • mikrotron
  • jamiek-galvanize
  • allison_cc
  • vkhimich