mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 15:27:43 +01:00
13 lines
333 B
JavaScript
13 lines
333 B
JavaScript
import Component from '../Component.jsx';
|
|
|
|
/**
|
|
* Attributes:
|
|
* - type: numeric, checkbox
|
|
*/
|
|
export default class TableCell extends Component {
|
|
view(vnode) {
|
|
this.attrs.addClassNames('mdc-data-table__cell', `mdc-data-table__cell--${this.attrs.get('type')}`);
|
|
return <td {...this.attrs.all()}>{vnode.children}</td>;
|
|
}
|
|
}
|