finezza-component
v1.2.0
Published
Components for finezza
Downloads
2
Readme
finezza-component
Components for finezza
Install
npm install --save finezza-component
Usage
To Import Table
import React, { Component } from 'react'
import { CustomTable } from 'finezza-component'
import 'finezza-component/dist/index.css'
class Example extends Component {
const
tableHeader = [
{
displayName: 'AMOUNT',
fieldName: 'amount',
isAmount: true,
width: '550px',
align: 'center'
}
]
render() {
return (
<CustomTable
tableHeader='array'
rowData='array'
checkbox='bool'
handleCheckBox='func,(will return index of selected rows)'
title='string'
onClickRow='func (will return index of select row)'
bankStyle='bool'
/>
)
}
}
To Import Loading Screen
import React, { Component } from 'react'
import { LoadingScreen } from 'finezza-component'
import 'finezza-component/dist/index.css'
class Example extends Component {
render() {
return <LoadingScreen />
}
}
To Import Spinner
import React, { Component } from 'react'
import { SpinnerScreen } from 'finezza-component'
import 'finezza-component/dist/index.css'
class Example extends Component {
render() {
return <SpinnerScreen open='bool' />
}
}
To Import all together
import { SpinnerScreen, LoadingScreen, CustomTable } from 'finezza-component'