MCPcopy Create free account
hub / github.com/microsoft/SandDance / Table

Function Table

docs/app/js/sanddance-app.js:6609–6623  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

6607 ENTER: "Enter"
6608};
6609const Table = (props)=>{
6610 return (0, _tsxCreateElement.createElement)("table", {
6611 className: props.className
6612 }, props.children, props.rows.map((row, i)=>(0, _tsxCreateElement.createElement)("tr", {
6613 className: props.rowClassName || "",
6614 onClick: (e)=>props.onRowClick && props.onRowClick(e, i),
6615 tabIndex: props.onRowClick ? 0 : -1,
6616 onKeyUp: (e)=>{
6617 if (e.key === KeyCodes.ENTER && props.onRowClick) props.onRowClick(e, i);
6618 }
6619 }, row.cells.map((cell, i)=>(0, _tsxCreateElement.createElement)("td", {
6620 className: cell.className || "",
6621 title: cell.title || ""
6622 }, cell.content)))));
6623};
6624
6625},{"tsx-create-element":"9k8zL","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"9k8zL":[function(require,module,exports) {
6626var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

renderTooltipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected