Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291219

Create Javascript library for searching/filtering rendered lists on the client.

$
0
0

Problem/Motivation

There are several places in core where the user searches in a text area to filter a list that is already rendered on the page. This filtering does not require any call back to the server.

  1. Current uses
  2. Place block on Block layout
  3. Views listing
  4. Extend(modules listing)
  5. In progress #2998862: The Layout Builder block listing should be filterable
  6. VIew add field popup https://gyazo.com/bd957018d522cf27725c505cfa0ffe7c
    This one seems can be ignored for now. It has extra selectbox for category.

All of the these instances use their own Javascript and don't use a shared solution.

Proposed resolution

Investigate and determine if these use cases could shared a javascript library to perform this filtering.

If they share a enough functionality and it could be generalised then let's make library for it.

Remaining tasks

Determine if it is a good idea, are they really the same use case
Create central solution
Determine if this library should be internal or available outside of core.

User interface changes

None

API changes

A new Javascript API for filtering rendered lists

Data model changes

None

Release notes snippet

TBD, If this a Javascript ApI that is not @internal then we will need release notes for how to use it.


Viewing all articles
Browse latest Browse all 291219

Trending Articles