Axinom Mosaic Libraries
    Preparing search index...

    Interface DDLBoundColumn<T>

    interface DDLBoundColumn<T extends Data> {
        dataEditRender?: DynamicListDataEntryRenderer;
        dataEntryRender?: DynamicListDataEntryRenderer;
        disableResizing?: boolean;
        key?: string;
        label?: string;
        onAddTransformer?: (value: unknown, data: T) => unknown;
        propertyName: keyof T;
        render?: ColumnRenderer<T>;
        size?: string;
        tooltip?: boolean;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    Set if data editing is allowed Setting fieldType to either 'input' or 'select' will generate an element appropriate to that type. If not set, will use the dataEntryRender value.

    Set if new data entry is allowed Setting fieldType to either 'input' or 'select' will generate an element appropriate to that type.

    disableResizing?: boolean

    If set to true, the column will not be resizable

    key?: string

    The identifier for the column. (Default: propertyName)

    label?: string

    Column's header label

    onAddTransformer?: (value: unknown, data: T) => unknown

    Performs a transformation on the value before being added to the list

    propertyName: keyof T

    The name of the property on the Data object that should be rendered in that column.

    render?: ColumnRenderer<T>

    A custom render function that will be called for every row(except data entry row) that should be rendered. The DynamicDataList will already try to render the data in a meaningful way, but in some advanced use cases more control is required.

    size?: string

    The width of the column as CSS size (default: 1fr)

    tooltip?: boolean

    If set to false, will not render a tooltip for the column data (default: undefined) If a custom renderer is used that will not return a value cast-able to a string, you should consider setting this property to false and add a title attribute on the component returned by the custom renderer.