@bitid/blox
TypeScript icon, indicating that this package has built-in type declarations

0.7.15 • Public • Published

@bitid/blox

Quick and easy dashbording tool!

Installation

$ npm i --save @bitid/blox

Usage

Add package to NgModule imports:

import { BloxModule } from '@bitid/blox';

@NgModule({
    ...
    imports: [
        BloxModule
    ]
    ...
})

Add component to your page:

<blox [editing]="true">
    <blox-row *ngFor="let row of rows" [rowId]="row.id" [height]="row.height" [position]="row.position">
        <blox-column *ngFor="let column of row.columns" [columnId]="column.columnId" [fill]="column.fill" [font]="column.font" [width]="column.width" [stroke]="column.stroke">
            <blox-banner>
                {{ column.label }}
            </blox-banner>

            <blox-chart *ngIf="column.type == 'chart'" [id]="column.columnId" [font]="column.font">
                <blox-series *ngFor="let series of column.series" [id]="series.id" [type]="series.type" [label]="series.label" [color]="series.color" [opacity]="series.opacity">
                    <blox-point *ngFor="let point of series.data" [date]="point.date" [value]="point.value"></blox-point>
                </blox-series>

                <blox-legend></blox-legend>
            </blox-chart>

            <blox-value *ngIf="column.type == 'value'" [font]="column.font">
                {{ column.value }}
            </blox-value>
        </blox-column>
    </blox-row>
</blox>

License

This project is licensed under the MIT License - see the LICENSE file for details

Readme

Keywords

none

Package Sidebar

Install

npm i @bitid/blox

Weekly Downloads

13

Version

0.7.15

License

none

Unpacked Size

1.19 MB

Total Files

114

Last publish

Collaborators

  • claytoncc
  • shanebowyer