![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@devexpress/dx-react-grid-material-ui
Advanced tools
Material UI templates for DevExtreme React Grid component
A template suite used to render the React Grid based on Material UI components.
Install the main dx-react-grid package with its dependencies and templates for Material UI:
npm i --save @devexpress/dx-react-core @devexpress/dx-react-grid @devexpress/dx-react-grid-material-ui
Add the required modules to your project:
import {
Grid, TableView, TableHeaderRow
} from '@devexpress/dx-react-grid-material-ui';
const App = () => (
<Grid
rows={[
{ id: 0, product: 'DevExtreme', owner: 'DevExpress' },
{ id: 1, product: 'DevExtreme Reactive', owner: 'DevExpress' },
]}
columns={[
{ name: 'id', title: 'ID' },
{ name: 'product', title: 'Product' },
{ name: 'owner', title: 'Owner' },
]}>
<TableView />
<TableHeaderRow />
</Grid>
);
Make sure that Material UI dependencies are installed and properly configured. Check the Material UI's Getting Started article for configuration details.
This package provides components and plugins implementing Material UI rendering for the React Grid, which you can use instead of the original React Grid package ones.
See demos for more information.
The package exposes components and plugins with injected templates.
Components:
Plugins:
The templates are defined via properties that end with the 'Template' postfix which accept a rendering function. Assign a custom function to the required property to override the default rendering function. The custom function should return undefined
if you need to invoke the default behavior under certain conditions.
1.0.0-alpha.8 (2017-08-21)
react-grid: The following changes have been made in the GroupingPanel plugin:
groupPanelCellTemplate
property has been renamed to groupPanelItemTemplate
;groupedColumns
property has been renamed to groupingPanelItems
and now contains an array of objects which conform the GroupingPanelItem interface.The isDraft
property of the DraftGrouping interface has been renamed to draft
.
react-grid:
In order to reduce API verbosity, the groupedColumns
and draftGroupedColumns
getters are no longer exported from the GroupingState plugin.
The column
field is no longer present in the GroupRow interface. So, to access the column
field in groupCellTemplate and groupIndentCellTemplate of the TableGroupRow plugin, it is necessary to use args.column
instead of args.row.column
.
react-grid: The colspan
field passed to tableNoDataCellTemplate (the TableView plugin), detailCellTemplate (the TableRowDetail plugin) and groupCellTemplate (the TableGroupRow plugin) has been renamed to colSpan
.
react-grid: To simplify the Grid plugins API the setRowSelection
action was removed from the SelectionState
and TableSelection
plugins.
For now, to select a single row you can use the setRowsSelection
action in the following manner:
setRowsSelection({ rowIds: [/* rowId */] })
react-grid:
TableRow
and TableColumn
interfaces structure has been changed. Now, it wraps original rows and columns of the Grid component instead of patching it.
Before:
interface TableRow extends Row {
type?: string;
}
interface TableColumn extends Column {
type?: string;
}
After:
interface TableRow {
key: string;
type: string;
rowId?: number | string;
row?: Row;
height?: number;
}
interface TableColumn {
key: string;
type: string;
column?: Column;
width?: number;
}
The CommandHeadingCellArgs
interface related to the TableEditColumn plugin no longer has column
and row
fields.
<a name="1.0.0-alpha.7"></a>
FAQs
Material-UI templates for DevExtreme React Grid component
The npm package @devexpress/dx-react-grid-material-ui receives a total of 19,104 weekly downloads. As such, @devexpress/dx-react-grid-material-ui popularity was classified as popular.
We found that @devexpress/dx-react-grid-material-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.