2.1.7 • Published 2 years ago

easy-antd v2.1.7

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

Quickly render simple elements like table from the antd library

Easy Antd Table Preview Easy Antd Table Preview Easy Antd Table Preview

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" },
      ]}
    />
)

Using the optional sort prop, you can make columns sortable.

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

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

You can always provide additional props. Documentation on props can be found here

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

Sponsor

⚽ Booklified Football Manager is a browser based strategy game where you can become a football manager. Coach your favourite football club! https://fm-land.booklified.com

📅 Booklified is a scheduling app. It lets other people easily book on your calendar. https://booklified.com

▶️ Youtube: ▶https://www.youtube.com/channel/UCa5K76Kap1iUqqML9JLhmxw

Author

👤 GorkemSinirlioglu

🤝 Contributing

Contact me if you would like to access the source code, or if you are facing any issues.

Buy me Coffee ☕

If this project helped you

📝 License

This project is MIT licensed.


2.1.4

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.7

2 years ago

2.1.2

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago