material-ui를 기반으로 하는 React 데이터 테이블 컴포넌트
import React, { Component } from "react"; import ReactDOM from "react-dom"; import MaterialTable from "material-table"; class App extends Component { render() { return ( <div style={{ maxWidth: "100%" }}> <MaterialTable columns={[ { title: "Adı", field: "name" }, { title: "Soyadı", field: "surname" }, { title: "Doğum Yılı", field: "birthYear", type: "numeric" }, { title: "Doğum Yeri", field: "birthCity", lookup: { 34: "İstanbul", 63: "Şanlıurfa" } } ]} data={[ { name: "Mehmet", surname: "Baran", birthYear: 1987, birthCity: 63 } ]} title="Demo Title" /> </div> ); } } ReactDOM.render(<App />, document.getElementById("react-div"));
등록된 댓글이 없습니다.