render method
Creates an HTML Element represention of Component.
Implementation
@override
HTMLElement render() {
final cell = super.render() as HTMLTableCellElement;
if (content != null) cell.append(content!.render());
if (colSpan != null) cell.colSpan = colSpan!;
if (rowSpan != null) cell.rowSpan = rowSpan!;
if (scope != null) {
switch (scope) {
case Scope.col:
cell.scope = 'col';
break;
case Scope.colgroup:
cell.scope = 'colgroup';
break;
case Scope.row:
cell.scope = 'row';
break;
case Scope.rowgroup:
cell.scope = 'rowgroup';
break;
default:
cell.scope = 'row';
break;
}
}
return cell;
}