Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 3.32 KB

table-plugin.tableconfig.md

File metadata and controls

29 lines (21 loc) · 3.32 KB

Home > @native-html/table-plugin > TableConfig

TableConfig interface

This object defines how the table component can be customized.

Signature:

export interface TableConfig 

Properties

Property Type Description
animationDuration? number (Optional) The animation duration in milliseconds when infered height value changes. See TableConfig.computeContainerHeight.
animationType? 'none' | 'layout' | 'animated' (Optional) What kind of animation should be used when height is changed?
computeContainerHeight? (state: TableContentHeightState) => number | null (Optional) A function which will compute container's height given the table content height.
computeHeuristicContentHeight? (state: HTMLTableStats) => number (Optional) A function to compute approximate content height before the real content height has been fetched on DOM mount.
cssRules? string (Optional) Override default CSS rules with this prop.
displayMode? 'normal' | 'embedded' | 'expand' (Optional) Determine how the width of the table is constrained (or not).
  • normal: the table will have no peculiar constrain on width or maxWidth.
  • embedded: the table acts like a width-constrained embedded (React Native Render HTML RFC001), with maxWidth determined by contentWidth and computeEmbeddedMaxWidth.
  • expand: like embedded, but with width set to maxWidth. This can be useful to have a center-aligned table on wide screens.
maxScale? boolean (Optional) Max zoom scale (must be greater than 1).
style? StyleProp<ViewStyle> (Optional) Container style.
tableStyleSpecs? TableStyleSpecs (Optional) Specs to generate css rules.
webViewProps? any (Optional) Any props you'd like to pass to the WebView component.