Skip to content

Grouping interface getter property type #430

Closed
@gregoryfikator

Description

@gregoryfikator

I'm submitting a Feature request

Motivation / Use Case

I'm trying to group by column with complex object data but grouping.interface doesn't allow me to set function as getter. Using default string from column field which points to exact property doesn't seem to work for me as I'm getting groups with [undefined] value.

Slickgrid's dataview can handle getter as function, so my question is if getter property of Grouping Interface shouldn't take string or (value: any) => string?

obraz
obraz
obraz
obraz

Expected Behavior

Allow string or function returning string as parameter for getter property of Grouping interface by changing getter?: string to getter?: string | (value: any) => string

Other Information

Setting any accepted type instead of Grouping for my setGrouping argument makes it working so the interface property type is the only one obstacle . I think interface should also consider this case.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions