Skip to content

ckeditor5-elements / QuickInsertListView

Class: QuickInsertListView ​

A list of insertable elements that can be filtered by a search query.

Fires execute with { value: name } when an item is chosen.

Extends ​

Implements ​

Constructors ​

Constructor ​

ts
new QuickInsertListView(locale, items): QuickInsertListView;

Parameters ​

ParameterType
localeLocale
itemsreadonly QuickInsertItem[]

Returns ​

QuickInsertListView

Overrides ​

ListView.constructor

Methods ​

filter() ​

ts
filter(regExp): object;

Shows only the items whose label or name matches the expression. null shows all items.

Parameters ​

ParameterType
regExpRegExp | null

Returns ​

object

resultsCount ​
ts
resultsCount: number;
totalItemsCount ​
ts
totalItemsCount: number;

Implementation of ​

FilteredView.filter


getFirstVisibleItem() ​

ts
getFirstVisibleItem(): QuickInsertItem | null;

Returns the first item that is not filtered out.

Returns ​

QuickInsertItem | null