Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
smart-grid-g
Advanced tools
Readme
Dynamically and configurable column properties with Multiview support of table component based on antd with React
online example: https://favori.gitee.io/gantd-landing (CodePen)
import React from 'react';
import SmartTable from 'smart-table-g';
import { Tag, Divider } from 'antd';
function BasicUse() {
const tableColumns = [
{
title: 'name',
fieldName: 'name',
render: text => <a>{text}</a>,
},
{
title: 'age',
fieldName: 'age',
},
{
title: 'address',
fieldName: 'address',
},
{
title: 'tags',
fieldName: 'tags',
render: tags => (
<span>
{tags.map(tag => {
let color = tag.length > 5 ? 'geekblue' : 'green';
if (tag === 'loser') {
color = 'volcano';
}
return (
<Tag color={color} key={tag}>
{tag.toUpperCase()}
</Tag>
);
})}
</span>
),
},
{
title: 'action',
fieldName: 'action',
render: (text, record) => (
<span>
<a>invite {record.name}</a>
<Divider type="vertical" />
<a>delete</a>
</span>
),
},
]
const dataSource = [
{
key: '1',
name: 'Mr someone1',
age: 32,
address: 'custom address',
tags: ['Otaku', 'Developer'],
},
{
key: '2',
name: 'Mr someone2',
age: 42,
address: 'custom address',
tags: ['Product manager'],
},
{
key: '3',
name: 'Mr someone3',
age: 32,
address: 'custom address',
tags: ['Teacher'],
},
]
return <div style={{ margin: 10 }}>
<SmartTable
tableKey="BasicUse"
schema={tableColumns}
dataSource={dataSource}
/>
</div>
}
React.render(<BasicUse/>, mountNode);
GantFDT
MIT
FAQs
gantd smart-grid-g
The npm package smart-grid-g receives a total of 60 weekly downloads. As such, smart-grid-g popularity was classified as not popular.
We found that smart-grid-g demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.