2.0.4 • Published 4 years ago
fabrick-core v2.0.4
fabrick-core
Fabrick Core
Install
npm install --save fabrick-core
Usage
import {BillPanel, FabrickTab, PaymentPanel, sampleData} from 'fabrick-core';
import 'fabrick-core/dist/styles.css';
import React from 'react';
/* const myPanel = new PanelManager<BillType>('Test'); */
/* myPanel */
/* .addColumn('Bill', { */
/* Header: 'Not Bill', */
/* maxWidth: 20, */
/* disableSortBy: true, */
/* }) */
/* .addColumn('State'); */
const App = () => {
/* const billPanel = BillPanel.makeTabPanel(billsdata); */
/* const paymentPanel = PaymentPanel.makeTabPanel(data2); */
/* BillPanel.addColumn('Trendy' as any, { accessor: 'State', order: -10, filterable: true, filterOrder: 10 }); */
const p1 = BillPanel.getPanel(sampleData.billsData);
const p2 = PaymentPanel.getPanel(sampleData.paymentsData);
return (
<div style={{maxWidth: 1200, padding: 20, margin: 'auto'}}>
<h2>Core</h2>
<FabrickTab panels={[p1, p2]} />
</div>
);
};
export default App;
License
MIT