Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
material-editable-table
Advanced tools
Readme
A materialized, editable table react component to display JSON data Inspired by react-json-table and material-ui-table-edit.
This table component provides an ituitive way to view data and edit them.
npm install --save material-editable-table
column An array containing column definitions
{
tooltip : "id", // The value to be displayed when column header is hovered
readonly : true, // If set to true, this column won't be editable even if the editing props of the table is set
name : "id" // The value displayed on the column header
}
items An array containing data in json format
{id: 1, name: "The first line"}
showToggle
A boolean value to decide if the editing toggle is shown. Note that this value doesn't affect editing
or editable
editing A boolean value to decide if the table can be edited initially
editable
Set this to true
to enable editing feature
[Other Props] Other props not discussed above will be propegated to Table component from material-ui#Table. You can affect table appearance and behaviors there.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Main Window</title>
</head>
<body>
<div id="Table">
</div>
<script src="main.entry.js"></script> <!-- This file is generated using wepack -->
</body>
</html>
import React from 'react'
import {render} from 'react-dom';
import JsonMaterialTable from 'material-editable-table';
var column = [
{tooltip: "id", readonly: true, name: "id"},
{tooltip: "name", readonly: false, name: "name"}
];
var row = [
{id: 1, name: "The first line"},
{id: 2, name: "The second line"}
];
render(<JsonMaterialTable columns={column} items={row} showToggle={true} editable={true} editing={true} />, document.getElementById("Table"));
This component just fits my needs. To make it more generally useful, there are much more to do, including:
MIT
FAQs
A materialized, static table react component to display JSON data
The npm package material-editable-table receives a total of 4 weekly downloads. As such, material-editable-table popularity was classified as not popular.
We found that material-editable-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.