• Renders a state icon for an item.

    To be used as Column.render value.

    Type Parameters

    Parameters

    • map: ColumnMap = {}

      An object of key/value pairs mapping column values to CSS colors.

    • Optional titleMapper: ((value) => string)

      A mapper function that returns a string value based on original value to set the title. If not specified, value is converted to string.

        • (value): string
        • Parameters

          • value: unknown

          Returns string

    Returns ColumnRenderer<T>

    Example

    <List
    {...otherProps}
    columns=[{
    propertyName: 'state'
    render: createStateRenderer({ changed: 'lightblue' })
    }]/>

Generated using TypeDoc