UNPKG

@native-html/table-plugin

Version:

🔠 A WebView-based plugin to render tables in react-native-render-html

16 lines (9 loc) • 988 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@native-html/table-plugin](./table-plugin.md) &gt; [TableConfig](./table-plugin.tableconfig.md) &gt; [displayMode](./table-plugin.tableconfig.displaymode.md) ## TableConfig.displayMode property Determine how the width of the table is constrained (or not). <ul> <li> <b>normal</b>: the table will have no peculiar constrain on <code>width</code> or <code>maxWidth</code>. </li> <li> <b>embedded</b>: the table acts like a width-constrained embedded (React Native Render HTML RFC001), with <code>maxWidth</code> determined by <code>contentWidth</code> and <code>computeEmbeddedMaxWidth</code>. </li> <li> <b>expand</b>: like <b>embedded</b>, but with <code>width</code> set to <code>maxWidth</code>. This can be useful to have a center-aligned table on wide screens. </li> </ul> <b>Signature:</b> ```typescript displayMode?: 'normal' | 'embedded' | 'expand'; ```