Report an issue
Class

CKEDITOR.plugins.autocomplete.model

classsince 4.10.0private

Class representing the autocomplete model.

In case you want to modify the model behavior, check out the CKEDITOR.plugins.autocomplete.view documentation. It contains examples of how to easily override the default behavior.

A model instance is created by the CKEDITOR.plugins.autocomplete.getModel method.

Note: This class is marked as private, which means that its API might be subject to change in order to provide further enhancements.

Filtering

Properties

  • readonly

    data : item[]

    The query results — the items to be displayed in the autocomplete panel.

  • readonly

    dataCallback : Function

    The callback executed by the model when requesting data. See CKEDITOR.plugins.autocomplete arguments.

  • readonly

    isActive : Boolean

    Whether the autocomplete is active (i.e. can receive user input like click, key press). Should be modified by the setActive method which fires the change-isActive event.

    Defaults to false

  • itemsLimit : Number

    Indicates the limit of items rendered in the dropdown.

    For falsy values like 0 or null all items will be rendered.

    Defaults to 0

  • readonly

    query : String

    The query string set by the setQuery method.

    The query string always has a corresponding range.

  • readonly

    range : range

    The range in the DOM where the query text is.

    The range always has a corresponding query. Both can be set by the setQuery method.

  • readonly

    selectedItemId : Number | String

    The ID of the item currently selected in the panel.

  • private readonly

    lastRequestId : Number

    The ID of the last request for data. Used by the setQuery method.

Static properties

Methods