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

Function Table

docs/tests/v2/es6/js/sanddance.js:143258–143274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143256};
143257
143258const Table = props => {
143259 return (0, _tsxCreateElement.createElement)("table", {
143260 className: props.className
143261 }, props.children, props.rows.map((row, i) => (0, _tsxCreateElement.createElement)("tr", {
143262 className: props.rowClassName || '',
143263 onClick: e => props.onRowClick && props.onRowClick(e, i),
143264 tabIndex: props.onRowClick ? 0 : -1,
143265 onKeyUp: e => {
143266 if (e.keyCode === KeyCodes.ENTER && props.onRowClick) {
143267 props.onRowClick(e, i);
143268 }
143269 }
143270 }, row.cells.map((cell, i) => (0, _tsxCreateElement.createElement)("td", {
143271 className: cell.className || '',
143272 title: cell.title || ''
143273 }, cell.content)))));
143274};
143275
143276exports.Table = Table;
143277},{"tsx-create-element":"RooA"}],"EXu7":[function(require,module,exports) {

Callers 1

renderTooltipFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected