@native-html/table-plugin
Version:
🔠A WebView-based plugin to render tables in react-native-render-html
36 lines (22 loc) • 877 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@native-html/table-plugin](./table-plugin.md) > [TableConfig](./table-plugin.tableconfig.md) > [cssRules](./table-plugin.tableconfig.cssrules.md)
## TableConfig.cssRules property
Override default CSS rules with this prop.
<b>Signature:</b>
```typescript
cssRules?: string;
```
## Remarks
You should at least set a rule which adds a 0-margin to `body` and `html`<!-- -->, otherwise the table will look truncated. When set, `tableStyleSpecs` is ignored. If you want to extend default instead of override CSS styles, look at example bellow.
## Example
```
const cssRules = cssRulesFromSpecs(defaultTableStylesSpecs) + `
a {
text-transform: uppercase;
}
`;
const config = {
cssRules,
// Other config options
};
```