Skip to content

Feature to use external search package for a custom search for config.data #624

@wanlwanl

Description

@wanlwanl

Is your feature request related to a problem? Please describe.

I'm always frustrated when I try to use an external search package for a custom search for config.data. Need to transform the data to the format that the external search package needed.

Describe the solution you'd like

A clear and concise description of what you want to happen.
Need a way to override of search operator.
The parameters needed are data, visible columns, invisible columns, data, keyword

Looks like for now I need to disable the default search plugin, and register my custom search plugin.
The code is almost the same, except for the search operator https://github.com/grid-js/gridjs/blob/master/src/operator/search.ts#L16

I expect the search config:

{
  search: {
    enabled: true,
    // columns: { name: "xxx", visible: true/false }
    operator: (data, columns, data, keyword) => {...}
  } 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions