1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00
Files
openstamanager/resources/js/Components/DataTable/TableCell.js
Maicol Battistini f65d0735b7 feat(components): 💩 Aggiunto wrapper data table
Necessita miglioramenti
2021-08-26 20:09:28 +02:00

14 lines
386 B
JavaScript
Vendored

import classnames from 'classnames';
import Component from '../Component';
/**
* Attributes:
* - type: numeric, checkbox
*/
export default class TableCell extends Component {
view(vnode) {
this.attrs.className = classnames('mdc-data-table__cell', vnode.attrs.className, `mdc-data-table__cell--${vnode.attrs.type}`);
return <td {...this.attrs}>{vnode.children}</td>;
}
}