2.0.5 ā€¢ Published 2 years ago

easy-antd-table v2.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

:warning: Deprecated: Please use easy-antd

Quickly render simple elements like table from the antd library

šŸ  Homepage

Prerequisites

  • node >=10

EasyTable

import {EasyTable} from "easy-antd"

export const MyComponent = () => (
    <EasyTable
      data={[
        { name: "John", age: 22 },
        { name: "Mike", age: 29 },
      ]}
      cols={[
        { title: "Name", key: "name", sort: "alphabetically" },
        { title: "Age", key: "age", sort: "numerically" },
      ]}
    />
)

"sort" prop on column item is optional, default is "none" sort?: "none" | "alphabetically" | "numerically"

type ColumnType = {
  title: string;
  key: string;
  sort?: "none" | "alphabetically" | "numerically"; // default: none
};

type EasyTableProps = {
  cols: ColumnType[];
  data: Object[];
};

You can always provide additional props: https://ant.design/components/table For example:

<EasyTable cols={cols} data={data} size="small" />

Author

šŸ‘¤ GorkemSinirlioglu

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2022 GorkemSinirlioglu. This project is MIT licensed.


2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago