Type alias DataTableCellProps

DataTableCellProps: {
    breakMode?: TextBreakModes;
    cellText?: string;
    componentProps?: ViewProps;
    content: React.ReactNode | string;
    noPadding?: boolean;
    onLongPress?: ((event) => void);
    onPress?: ((event) => void);
    style?: StyleProp<ViewStyle>;
    type?: "default" | "header";
    width?: number;
}

Props for DataTableCell component

Type declaration

  • Optional breakMode?: TextBreakModes

    Break mode used on string type content (default is tail)

  • Optional cellText?: string

    Text to use for cell (accessibility). Not set by default. May not be required if cell only includes text

  • Optional componentProps?: ViewProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • content: React.ReactNode | string

    Content of the cell. If string will format accordingly. If Node will not be styled.

  • Optional noPadding?: boolean

    No padding on the cell

  • Optional onLongPress?: ((event) => void)
      • (event): void
      • onLongPress event for the cell

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional onPress?: ((event) => void)
      • (event): void
      • onPress event for the cell

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

  • Optional type?: "default" | "header"

    Type of cell (default is default)

  • Optional width?: number

    Width to set. Be sure to set width of header and corresponding cell to same. Defaults to fill.

Generated using TypeDoc