Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add options.searchColumns to List API docs #648

@sheffieldnikki

Description

@sheffieldnikki

Can this be added to the List API docs please?

You can use searchColumns in the options when you initialize the list like this:

var options = { valueNames: [ 'name', 'lastname','birthdate' ], searchColumns:[ 'name', 'lastname' ] }; var userList = new List('users', options);

In this example you would have 3 fields (name, lastname, birthdate) and the search function would use only name and lastname.

Originally posted by @pvdlg in #418 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions