import React, { Component } from "react"; import { Container, Row, Col } from "react-bootstrap"; import { makeStyles, createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles'; import SearchIcon from '@material-ui/icons/Search'; import Images from "../../assets/Images"; import MUIDataTable from "mui-datatables"; import { TextField, InputBase } from "@material-ui/core"; import { ExcelRenderer } from 'react-excel-renderer'; import CreateItemLaporan from "./formItemLaporan/CreateItemLaporan"; var ct = require("../../library/CustomTable"); const getMuiTheme = () => createMuiTheme(ct.customTable()); const options = ct.customOptions(); const options2 = ct.customOptions2(); export default class ItemLaporan extends Component { constructor(props) { super(props) this.state = { dataTable: [], listData: [], data: [], add: false, edit: false } } closeEdit() { this.setState({edit: false}) } closeAdd() { this.setState({add: false}) } render() { const columns = [{ name: "Action", options: { customBodyRender: (val, tableMeta) => { return (
); } } }, "ID", "Jenis Laporan", "Perusahaan", "Order", "Deskripsi", "Parent ID", "UOM", "Weight", "Tipe Data", "Status"] const data = [ ["", "1", "KPI", "TIA", "1", "Financial Perspective", "0", "-", "35%", "Formula", "Aktif"], ["", "2", "KPI", "TIA", "2", "Trading Profit", "1", "Rp Bio", "35%", "Formula", "Aktif"], ["", "3", "KPI", "TIA", "3", "Revenue", "1", "Rp Bio", "0%", "Formula", "Aktif"], ["", "4", "KPI", "TIA", "4", "EBITDA", "1", "Rp Bio", "0%", "Formula", "Non Aktif"], ["", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ] const options = { filter: false, sort: false, responsive: "scroll", print: false, download: false, selectableRows: false, viewColumns: false, rowsPerPage: 5, search: false } return (
{/* */}
this.handleInputChange(e)} inputProps={{ 'aria-label': 'naked' }} />
{this.state.add && ( )}
); } }