@theaimegroup/aime-component-library
v1.7.51
Published
AIME Component Library
Downloads
183
Readme
Aime Component library
Available Components
- Babbu components
- Delight components
- Dropdown
- Custom components
- Header
DashboardAggregateCard
Example:
<DashboardAggregateCard
iconURL="https://cdn-icons-png.flaticon.com/512/3209/3209891.png" //required
title="CO2e" //required
subtitle=" Total Emissions" //required
tableName="pages_collected_data" //required
columnName="mvm_chat_volume" //required
dateColumnName="date" //required
aggregateType="sum" //optional
dateFrom="2022-01-01" // optional default = new Date().toISOString().slice(0, 19).replace('T', ' ')
dateTo="2022-03-31" // optional default = new Date().toISOString().slice(0, 19).replace('T', ' ')
primaryColor="#ffffff" //optional
secondaryColor="#028AE7" //optional
/>
DashboardContainer
Example:
<DashboardContainer
sideBar={
<Sidebar menuItems={[]} logoIcon=""/>
}
NavBar={
<DelightHeader {...navprops}/>
}
body={
<DelightTable
primaryColor={"#ffffff"}
secondaryColor={"#4138C2"}
isModal={false}
noOfCols={3}
title={"Host Traders"}
tablename={"host_traders"}
col={col}
panels={panels}
addEditDisplayType={AddEditDisplayType.Drawer}
recordsDisplayType={RecordDisplayType.Table}
gridCardDisplay={gridCardDisplay}
searchByCol={["company"]}
/>
}
/>