MCPcopy
hub / github.com/marmelab/react-admin / rowClick

Function rowClick

examples/simple/src/posts/PostList.tsx:111–117  ·  view source on GitHub ↗
(_id, _resource, record)

Source from the content-addressed store, hash-verified

109);
110
111const rowClick = (_id, _resource, record) => {
112 if (record.commentable) {
113 return 'edit';
114 }
115
116 return 'show';
117};
118
119const PostPanel = () => {
120 const record = useRecordContext();

Callers 4

SimpleListItemFunction · 0.85
DataTableRow.tsxFile · 0.85
DatagridRow.tsxFile · 0.85
DataTableRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected