Map testing, custom table based on Tanstack Table
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
import React from 'react'
|
||||
import { Table, DataType } from 'ka-table'
|
||||
import 'ka-table/style.css';
|
||||
import { Flex } from '@mantine/core';
|
||||
import styles from './TableTest.module.scss'
|
||||
import CustomTable from '../components/CustomTable';
|
||||
|
||||
function TableTest() {
|
||||
|
||||
return (
|
||||
<Flex direction='column' align='flex-start' gap='sm' p='sm'>
|
||||
<Table
|
||||
{/* <Table
|
||||
columns={[
|
||||
{ key: 'column1', title: 'Column 1', dataType: DataType.String },
|
||||
{ key: 'column2', title: 'Column 2', dataType: DataType.String },
|
||||
@ -24,7 +23,8 @@ function TableTest() {
|
||||
}),
|
||||
)}
|
||||
rowKeyField={'id'}
|
||||
/>
|
||||
/> */}
|
||||
<CustomTable />
|
||||
</Flex>
|
||||
)
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
$ka-background-color: #2c2c2c;
|
||||
$ka-border-color: #4d4d4d;
|
||||
$ka-cell-hover-background-color: transparentize(#fff, 0.8);
|
||||
$ka-cell-hover-background-color: adjust(#fff, 0.8);
|
||||
$ka-color-base: #fefefe;
|
||||
$ka-input-background-color: $ka-background-color;
|
||||
$ka-input-border-color: $ka-border-color;
|
||||
$ka-input-color: $ka-color-base;
|
||||
$ka-row-hover-background-color: transparentize(#fff, 0.9);
|
||||
$ka-row-hover-background-color: adjust(#fff, 0.9);
|
||||
$ka-thead-background-color: #1b1b1b;
|
||||
$ka-thead-color: #c5c5c5;
|
Reference in New Issue
Block a user