/syncfusion-javascript:syncfusion-javascript-dropdownsfrom Syncfusion JavaScript UI Controls
Comprehensive guide for implementing Syncfusion TypeScript dropdown components including AutoComplete, ComboBox, Mention, Dropdownlist, Multiselect, ListBox, and MultiColumn ComboBox. Use this when building selection interfaces, data binding, filtering, cascading dropdowns, dual list transfer, custom templates, and accessible dropdown experiences.
Ships in Syncfusion JavaScript UI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Syncfusion DropDownList component provides a single-select dropdown with support for local/remote data binding, filtering, grouping, custom templates, virtual scrolling, accessibility, and cascading patterns — all in TypeScript.
📄 Read: references/dropdownlist-getting-started.md
appendTo📄 Read: references/dropdownlist-data-binding.md
fields to map text, value, iconCss, groupBy, and disabled columnsDataManager (OData, ODataV4 adaptors)query to filter/sort remote dataallowObjectBinding)📄 Read: references/dropdownlist-filtering.md
allowFiltering and the filter barfiltering event with updateDatastartsWith, endsWith, containsignoreAccent)debounceDelay for performancehighlightSearch📄 Read: references/dropdownlist-grouping.md
groupBy field for category-based grouping<select> with <optgroup> supportgroupTemplate📄 Read: references/dropdownlist-templates.md
itemTemplate — customize each list itemvalueTemplate — customize the selected value displaygroupTemplate — customize group headersheaderTemplate and footerTemplate — static popup header/footernoRecordsTemplate and actionFailureTemplate📄 Read: references/dropdownlist-features.md
fields.disabled and disableItem methodshowClearButton or programmaticallyallowResizeenableVirtualization for large datasetsfloatLabelType, enabled, readonly, sortOrderhtmlAttributes, cssClass, width, zIndex📄 Read: references/dropdownlist-events-and-methods.md
change event with isInteracted flagopen, close, beforeOpen, select, dataBound eventsactionBegin, actionComplete, actionFailure for remote datafiltering, focus, blur eventsshowPopup, hidePopup, addItem, getItems, getDataByValuedataBind, clear, refresh, destroy, focusIn, focusOut📄 Read: references/dropdownlist-cascading.md
change event and QuerydataBind after property changes📄 Read: references/dropdownlist-style-and-accessibility.md
enableRtlL10n📄 Read: references/dropdownlist-api.md
FieldSettingsModel referencenpm install @syncfusion/ej2-dropdowns
npm audit
import { DropDownList } from '@syncfusion/ej2-dropdowns';
// Simple string array
let dropDownListObject: DropDownList = new DropDownList({
dataSource: ['Badminton', 'Cricket', 'Football', 'Golf', 'Tennis'],
placeholder: 'Select a game'
});
dropDownListObject.appendTo('#ddlelement');
<!-- index.html -->
<input type="text" id="ddlelement" />
import { DropDownList } from '@syncfusion/ej2-dropdowns';
let sportsData: { [key: string]: Object }[] = [
{ Id: 'game1', Game: 'Badminton' },
{ Id: 'game2', Game: 'Football' },
{ Id: 'game3', Game: 'Tennis' }
];
let ddl: DropDownList = new DropDownList({
dataSource: sportsData,
fields: { text: 'Game', value: 'Id' },
placeholder: 'Select a game'
});
ddl.appendTo('#ddlelement');
import { DropDownList } from '@syncfusion/ej2-dropdowns';
import { Query, DataManager, ODataV4Adaptor } from '@syncfusion/ej2-data';
let ddl: DropDownList = new DropDownList({
dataSource: new DataManager({
url: 'url', // Replace with your trusted API endpoint
adaptor: new ODataV4Adaptor,
crossDomain: true // Enable only when the API origin differs from your app; use only with trusted endpoints
}),
query: new Query().from('Customers').select(['ContactName', 'CustomerID']).take(6),
fields: { text: 'ContactName', value: 'CustomerID' },
placeholder: 'Select a customer',
sortOrder: 'Ascending'
});
ddl.appendTo('#ddlelement');
import { DropDownList, FilteringEventArgs } from '@syncfusion/ej2-dropdowns';
import { DataManager, Query } from '@syncfusion/ej2-data';
let ddl: DropDownList = new DropDownList({
dataSource: searchData,
fields: { text: 'Country', value: 'Index' },
allowFiltering: true,
placeholder: 'Select a country',
filtering: (e: FilteringEventArgs) => {
let query = new Query();
query = e.text !== '' ? query.where('Country', 'startswith', e.text, true) : query;
e.updateData(searchData, query);
}
});
ddl.appendTo('#ddlelement');
let ddl: DropDownList = new DropDownList({
dataSource: sportsData,
fields: { text: 'Game', value: 'Id' },
placeholder: 'Select a game',
change: (args) => {
if (args.isInteracted) {
console.log('User selected:', args.value);
} else {
console.log('Programmatic change:', args.value);
}
}
});
| Property | Type | Purpose |
|---|---|---|
dataSource | array | DataManager | Data to populate the list |
fields | FieldSettingsModel | Maps text, value, groupBy, iconCss, disabled |
value | string | number | boolean | object | Selected value |
text | string | Display text of selected item |
index | number | Index of selected item |
placeholder | string | Input placeholder text |
allowFiltering | boolean | Show filter bar |
enableVirtualization | boolean | Virtual scroll for large lists |
sortOrder | 'None' | 'Ascending' | 'Descending' | Sort list items |
showClearButton | boolean | Show clear (×) button |
enabled | boolean | Enable/disable the component |
readonly | boolean | Prevent user interaction |
popupHeight | string | number | Height of popup (default 300px) |
popupWidth | string | number | Width of popup (default 100%) |
The Syncfusion TypeScript MultiSelect component is a feature-rich dropdown that allows users to select one or multiple values from a list. It supports data binding, filtering, grouping, cascading, custom templates, and comprehensive accessibility features.
📄 Read: references/multiselect-getting-started.md
📄 Read: references/multiselect-data-binding.md
📄 Read: references/multiselect-selection-modes.md
value property (array of selected values)📄 Read: references/multiselect-checkbox-multiselect.md
📄 Read: references/multiselect-filtering-search.md
📄 Read: references/multiselect-grouping-sorting.md
📄 Read: references/multiselect-cascading-dropdowns.md
📄 Read: references/multiselect-customization-templates.md
📄 Read: references/multiselect-virtual-scrolling.md
📄 Read: references/multiselect-accessibility.md
📄 Read: references/multiselect-how-to-guide.md
📄 Read: references/multiselect-api.md
FieldSettingsModel field mapping referenceMultiSelectChangeEventArgs, SelectEventArgs, RemoveEventArgs, TaggingEventArgs, FilteringEventArgs, etc.)CheckBoxSelection and VirtualScrollimport { MultiSelect } from '@syncfusion/ej2-dropdowns';
// Initialize with simple string data
const multiSelect = new MultiSelect({
dataSource: ['Apple', 'Banana', 'Orange', 'Mango'],
placeholder: 'Select fruits'
});
multiSelect.appendTo('#select');
import { MultiSelect, CheckBoxSelection } from '@syncfusion/ej2-dropdowns';
MultiSelect.Inject(CheckBoxSelection);
const multiSelect = new MultiSelect({
dataSource: [
{ id: '1', name: 'Apple' },
{ id: '2', name: 'Banana' },
{ id: '3', name: 'Orange' }
],
fields: { text: 'name', value: 'id' },
mode: 'CheckBox',
showSelectAll: true,
placeholder: 'Select fruits'
});
multiSelect.appendTo('#select');
import { MultiSelect, FilteringEventArgs } from '@syncfusion/ej2-dropdowns';
import { Query } from '@syncfusion/ej2-data';
const data = [
{ id: '1', city: 'New York' },
{ id: '2', city: 'Los Angeles' },
{ id: '3', city: 'Chicago' }
];
const multiSelect = new MultiSelect({
dataSource: data,
fields: { text: 'city', value: 'id' },
allowFiltering: true,
filtering: (e: FilteringEventArgs) => {
const query = new Query();
if (e.text !== '') {
query.where('city', 'startswith', e.text, true);
}
e.updateData(data, query);
},
placeholder: 'Search cities'
});
multiSelect.appendTo('#select');
// Country dropdown
const countrySelect = new MultiSelect({
dataSource: countries,
fields: { text: 'name', value: 'id' },
change: () => {
const selectedCountry = countrySelect.value;
// Update state dropdown based on selected country
stateSelect.dataSource = states.filter(s => s.countryId === selectedCountry);
stateSelect.refresh();
}
});
countrySelect.appendTo('#country');
import { DataManager, ODataV4Adaptor, Query } from '@syncfusion/ej2-data';
const multiSelect = new MultiSelect({
dataSource: new DataManager({
url: 'url', // Replace with your trusted API endpoint
adaptor: new ODataV4Adaptor(),
crossDomain: true // Enable only when the API origin differs from your app; use only with trusted endpoints
}),
query: new Query().select(['ContactName', 'CustomerID']).take(10),
fields: { text: 'ContactName', value: 'CustomerID' },
placeholder: 'Select customer'
});
multiSelect.appendTo('#select');
⚠️ Security note: Template strings use
${field}interpolation. If field values originate from user input or remote sources, sanitize/encode them before binding to prevent XSS injection.
const multiSelect = new MultiSelect({
dataSource: employees,
fields: { text: 'firstName', value: 'id' },
itemTemplate: '<div><span>${firstName}</span><span>${department}</span></div>',
valueTemplate: '<span>${firstName} - ${department}</span>',
placeholder: 'Select employee'
});
multiSelect.appendTo('#select');
| Prop | Type | Default | Purpose |
|---|---|---|---|
dataSource | array | DataManager | [] | Bind data to component |
fields | FieldSettingsModel | {} | Map data fields (text, value, groupBy, iconCss) |
value | string[] | number[] | boolean[] | object[] | null | Get/set selected value(s) |
mode | 'Box' | 'Delimiter' | 'Default' | 'CheckBox' | 'Default' | Selection display mode |
allowFiltering | boolean | null | Enable search/filter functionality |
enableVirtualization | boolean | false | Enable virtual scrolling for performance |
itemTemplate | string | Function | null | Custom HTML for list items |
valueTemplate | string | Function | null | Custom HTML for selected display |
placeholder | string | null | Input placeholder text |
showSelectAll | boolean | false | Show Select All option in CheckBox mode |
enableGroupCheckBox | boolean | false | Enable group header checkboxes in CheckBox mode |
maximumSelectionLength | number | 1000 | Limit number of selectable items |
allowCustomValue | boolean | false | Allow entering values not in the list |
closePopupOnSelect | boolean | true | Keep popup open after each selection |
hideSelectedItem | boolean | true | Hide selected items from dropdown list |
delimiterChar | string | ',' | Separator character in Delimiter mode |
showClearButton | boolean | true | Show remove icon on each chip |
showDropDownIcon | boolean | false | Show dropdown arrow button |
enabled | boolean | true | Enable/disable component |
readonly | boolean | false | Make component read-only |
zIndex | number | 1000 | z-index of the popup element |
📘 For the complete API including all properties, methods, and events, see references/multiselect-api.md.
The AutoComplete component displays a matched suggestion list as the user types into an input field. It extends ComboBox with filtering-first behavior — the popup opens only when the user types, not on focus (by default).
Key capabilities:
StartsWith, EndsWith, or Contains (default)DataManager sourcesminLength)filtering eventshowPopup() / hidePopup()📄 Read: references/getting-started.md
<input>)new AutoComplete()appendTo()📄 Read: references/filtering.md
filterType: StartsWith, EndsWith, ContainsminLength: minimum characters before filter runsignoreCase: case-sensitive vs case-insensitive searchfiltering event: custom filter logic with updateData()filter() method: programmatic filteringDataManager📄 Read: references/data-binding.md
fields mapping: text, value, iconCss, groupByquery property with DataManagerhtmlAttributes for custom HTML attributes📄 Read: references/highlight-and-suggestions.md
highlight: visually highlight matched characterssuggestionCount: limit number of popup list itemsshowPopupButton: toggle the popup trigger buttonshowPopup() / hidePopup(): programmatic popup control📄 Read: references/customization.md
floatLabelType: Never, Always, Auto📄 Read: references/virtualization.md
AutoComplete.Inject(VirtualScroll) — required module injectionenableVirtualization: true — activate virtual scrollingDataManagerquery.take()📄 Read: references/api.md
actionFailureTemplate, allowCustom, allowObjectBinding, allowResize, autofill, cssClass, dataSource, debounceDelay, enablePersistence, enableRtl, enableVirtualization, enabled, fields, filterType, floatLabelType, footerTemplate, groupTemplate, headerTemplate, highlight, htmlAttributes, ignoreAccent, ignoreCase, isDeviceFullScreen, itemTemplate, locale, minLength, noRecordsTemplate, placeholder, popupHeight, popupWidth, query, readonly, showClearButton, showPopupButton, sortOrder, suggestionCount, value, width, zIndex<!-- index.html -->
<input id="atc" type="text" />
import { AutoComplete } from '@syncfusion/ej2-dropdowns';
// Local string array
const sports: string[] = ['Badminton', 'Basketball', 'Cricket', 'Football', 'Hockey', 'Tennis'];
const atcObj: AutoComplete = new AutoComplete({
dataSource: sports,
placeholder: 'Find a sport'
});
atcObj.appendTo('#atc');
/* Import a built-in theme */
@import '../node_modules/@syncfusion/ej2/material.css';
Type any character — matching items appear in the suggestion popup. Press Enter or click a suggestion to select.
const atcObj: AutoComplete = new AutoComplete({
dataSource: sports,
filterType: 'StartsWith',
placeholder: 'Search'
});
atcObj.appendTo('#atc');
import { AutoComplete } from '@syncfusion/ej2-dropdowns';
const employees: { [key: string]: Object }[] = [
{ id: 1, name: 'Alice', dept: 'Engineering' },
{ id: 2, name: 'Bob', dept: 'Design' },
{ id: 3, name: 'Carol', dept: 'Engineering' }
];
const atcObj: AutoComplete = new AutoComplete({
dataSource: employees,
fields: { value: 'id', text: 'name', groupBy: 'dept' },
placeholder: 'Find employee'
});
atcObj.appendTo('#atc');
import { AutoComplete, FilteringEventArgs } from '@syncfusion/ej2-dropdowns';
import { Query } from '@syncfusion/ej2-data';
const atcObj: AutoComplete = new AutoComplete({
dataSource: sports,
filtering: (e: FilteringEventArgs) => {
let query: Query = new Query().where('', 'startswith', e.text, true);
e.updateData(sports, query);
}
});
atcObj.appendTo('#atc');
const atcObj: AutoComplete = new AutoComplete({
dataSource: sports,
highlight: true,
suggestionCount: 5,
placeholder: 'Search (max 5 results)'
});
atcObj.appendTo('#atc');
| Property | Type | Default | Purpose |
|---|---|---|---|
dataSource | Object[] | DataManager | string[] | [] | Data to search |
fields | FieldSettingsModel | { value: null, iconCss: null, groupBy: null } | Maps object keys to display/value |
filterType | FilterType | 'Contains' | How input is matched against data |
minLength | number | 1 | Min chars typed before filtering fires |
ignoreCase | boolean | true | Case-insensitive matching |
ignoreAccent | boolean | false | Ignore diacritic/accent characters when filtering |
highlight | boolean | false | Highlight matched chars in popup |
suggestionCount | number | 20 | Max items shown in popup |
autofill | boolean | false | Inline auto-fill of first matched item |
allowCustom | boolean | true | Allow values not in data source |
allowObjectBinding | boolean | false | Return full object as value on selection |
allowResize | boolean | false | Show resize handle on popup |
showPopupButton | boolean | false | Show dropdown arrow button |
showClearButton | boolean | true | Show ✕ clear button |
floatLabelType | FloatLabelType | 'Never' | Label float behavior |
htmlAttributes | { [key: string]: string } | {} | Extra HTML attributes on input |
query | Query | null | Custom query for DataManager |
debounceDelay | number | 300 | Delay (ms) before filter executes on keystroke |
sortOrder | SortOrder | null | Sort order of popup list: None, Ascending, Descending |
enableVirtualization | boolean | false | Virtual scrolling for large datasets |
isDeviceFullScreen | boolean | true | Fullscreen popup on mobile when filtering |
enablePersistence | boolean | false | Persist value across page reloads |
enableRtl | boolean | false | Right-to-left rendering |
popupHeight | string | number | '300px' | Height of suggestion popup |
popupWidth | string | number | '100%' | Width of suggestion popup |
zIndex | number | 1000 | Z-index of popup element |
Key Events:
| Event | Fires When |
|---|---|
filtering | Each keystroke — use e.updateData() to supply custom results |
change | Value changes via selection or user input |
select | User selects an item from the popup |
open / close | Popup opens or closes |
beforeOpen | Just before the popup opens |
focus / blur | Component gains or loses focus |
dataBound | Data source is populated in the popup |
actionBegin / actionComplete / actionFailure | Remote data fetch lifecycle |
customValueSpecifier | User types a value not in data source (allowCustom: true) |
resizeStart / resizing / resizeStop | Popup resize lifecycle (allowResize: true) |
created / destroyed | Component creation and destruction |
Key Methods: showPopup(), hidePopup(), filter(dataSource, query?, fields?), clear(), addItem(), disableItem(), getDataByValue(), getItems(), focusIn(), focusOut(), showSpinner(), hideSpinner(), refresh(), destroy().
The ComboBox component allows the user to type a value directly into the input or choose an option from the dropdown list of predefined options. It is the flexible middle ground between a plain text input and a strict DropDownList — users are not forced to pick an existing item unless allowCustom is set to false.
Key differentiators from DropDownList:
allowCustom: true)autofill suggests the first matching item inline as the user typescustomValueSpecifier event lets you format and transform user-typed custom valuesallowFiltering with an inline search experience (no separate filter bar)| Capability | ComboBox Behavior |
|---|---|
| User input | Editable — user types directly in the input field |
| Custom values | Allowed by default (allowCustom: true) |
| Inline suggestion | Optional via autofill: true |
| Filtering | Optional via allowFiltering: true + filtering event |
| Virtualization | Supported via ComboBox.Inject(VirtualScroll) |
| Data binding | Local arrays, object arrays, DataManager (remote) |
| Object binding | Full object value binding via allowObjectBinding: true |
📄 Read: references/getting-started.md
<select> or <input>)new ComboBox({}).appendTo('#id')value, text, indexshowClearButton, placeholder, width📄 Read: references/data-binding.md
fields mapping (text, value, groupBy)htmlAttributes for input element customizationDataManagerquery property for custom data queriesallowObjectBinding for full object value binding📄 Read: references/filtering.md
allowFiltering: truefiltering event and FilteringEventArgs usagefilter() method for local and remote custom filteringisDeviceFullScreen behavior on mobile📄 Read: references/custom-values.md
allowCustom: true/false — controlling whether typed values are acceptedautofill — inline suggestion as user typescustomValueSpecifier event for formatting custom typed valuesCustomValueSpecifierEventArgs interface (text, item)clear() and showClearButtonallowObjectBinding combined with custom values📄 Read: references/customization.md
floatLabelType: Never / Always / AutocssClass for custom stylingheaderTemplate / footerTemplate for popup header and footerplaceholder, width, popupHeight, popupWidthreadonly modeshowPopup() / hidePopup()focusIn() / focusOut()showSpinner() / hideSpinner()📄 Read: references/virtualization.md
ComboBox.Inject(VirtualScroll)enableVirtualization: true for large datasetsDataManager virtualizationallowCustom and allowFiltering📄 Read: references/api.md
CustomValueSpecifierEventArgs interfaceimport { ComboBox } from '@syncfusion/ej2-dropdowns';
import '@syncfusion/ej2-base/styles/material.css';
import '@syncfusion/ej2-inputs/styles/material.css';
import '@syncfusion/ej2-popups/styles/material.css';
import '@syncfusion/ej2-dropdowns/styles/material.css';
const sportsData: string[] = ['Badminton', 'Basketball', 'Cricket', 'Football', 'Tennis'];
const comboBox: ComboBox = new ComboBox({
dataSource: sportsData,
placeholder: 'Select or type a sport',
allowCustom: true
});
comboBox.appendTo('#combo-element');
<input id="combo-element" />
const comboBox: ComboBox = new ComboBox({
dataSource: sportsData,
allowCustom: false, // reject values not in the list
placeholder: 'Select a sport'
});
comboBox.appendTo('#combo-element');
const comboBox: ComboBox = new ComboBox({
dataSource: sportsData,
autofill: true, // suggests first match inline as user types
placeholder: 'Start typing...'
});
comboBox.appendTo('#combo-element');
import { ComboBox, FilteringEventArgs } from '@syncfusion/ej2-dropdowns';
import { DataManager, ODataV4Adaptor, Query } from '@syncfusion/ej2-data';
const comboBox: ComboBox = new ComboBox({
dataSource: new DataManager({ url: 'url', adaptor: new ODataV4Adaptor() }),
fields: { text: 'ContactName', value: 'CustomerID' },
allowFiltering: true,
filtering: (args: FilteringEventArgs) => {
const query = new Query().select(['ContactName', 'CustomerID']).take(6);
args.updateData(comboBox.dataSource as DataManager, query);
},
placeholder: 'Search customers'
});
comboBox.appendTo('#combo-element');
import { ComboBox, CustomValueSpecifierEventArgs } from '@syncfusion/ej2-dropdowns';
const comboBox: ComboBox = new ComboBox({
dataSource: [{ text: 'Cricket', id: '1' }],
fields: { text: 'text', value: 'id' },
allowCustom: true,
customValueSpecifier: (args: CustomValueSpecifierEventArgs) => {
args.item = { text: args.text, id: args.text.toLowerCase() };
}
});
comboBox.appendTo('#combo-element');
| Property | Type | Default | Purpose |
|---|---|---|---|
dataSource | Object[] | DataManager | string[] | [] | Data for the dropdown list |
fields | FieldSettingsModel | {} | Map text, value, groupBy keys |
value | number | string | boolean | object | null | null | Selected value |
text | string | null | null | Display text of selected item |
index | number | null | null | Index of selected item |
allowCustom | boolean | true | Allow user-typed values not in list |
autofill | boolean | false | Inline suggestion while typing |
allowFiltering | boolean | false | Show search box in popup |
showClearButton | boolean | true | Show ✕ button to clear selection |
placeholder | string | null | Input placeholder text |
floatLabelType | FloatLabelType | 'Never' | Floating label behavior |
readonly | boolean | false | Disable user interaction |
allowObjectBinding | boolean | false | Bind full object as value |
enableVirtualization | boolean | false | Enable virtual scrolling ⚠️ requires Inject |
The Mention component monitors a target element (textarea, input, or contenteditable div) and opens a suggestion popup when the user types a configured trigger character (default @). The user selects an item and it is inserted as a styled chip into the target element.
Key capabilities:
<textarea>, <input>, or contenteditable element via targetmentionChar (default @)DataManager sourcesStartsWith, EndsWith, or Contains (default)highlightitemTemplate and the inserted chip with displayTemplateminLength, requireLeadingSpace, debounceDelaysearch() and manage items with disableItem() / addItem()📄 Read: references/getting-started.md
new Mention({ target: '#myTextarea', dataSource: [...] })appendTo() usagementionChar — trigger character configuration📄 Read: references/data-binding.md
fields mapping (text, value, iconCss, groupBy)DataManager with actionBegin / actionComplete / actionFailure eventsquery property for custom data queriessortOrder: None / Ascending / DescendingactionFailureTemplate for remote error handling📄 Read: references/filtering.md
filterType: StartsWith, EndsWith, ContainsminLength: minimum characters before popup appearsignoreCase and ignoreAccent for flexible matchingdebounceDelay: performance tuning for keystroke filteringfiltering event and FilteringEventArgs — custom filter logic with updateData()📄 Read: references/popup-and-display.md
target: binding to textarea, input, or contenteditablerequireLeadingSpace: enforce space before @allowSpaces: allow spaces within a mention searchpopupWidth / popupHeight sizingshowPopup() / hidePopup() programmatic controlzIndex for layeringnoRecordsTemplate / spinnerTemplatebeforeOpen, opened, closed popup lifecycle events📄 Read: references/templates-and-customization.md
itemTemplate: customize each suggestion item in the popupdisplayTemplate: customize the inserted chip HTMLgroupTemplate: group header rendering in popupshowMentionChar: include @ in the inserted chipsuffixText: append a space or newline after insertionhighlight: bold matched characters in suggestionscssClass for component-level styling📄 Read: references/events-and-methods.md
select event (SelectEventArgs) — fires when user picks an itemchange event (MentionChangeEventArgs) — value, previousItem, elementfiltering event — intercept and override suggestion datasearch(text, x, y) — programmatic search trigger at screen coordinatesdisableItem(item) — disable a specific popup itemaddItem(items, index?) — add new items to the suggestion listgetItems() / getDataByValue(value) — query list statecreated / destroyed lifecycle events📄 Read: references/api.md
MentionChangeEventArgs interface fields<!-- index.html -->
<textarea id="mentionTarget" rows="5" cols="40" placeholder="Type @ to mention someone"></textarea>
<div id="mention-default"></div>
import { Mention } from '@syncfusion/ej2-dropdowns';
const userData: { [key: string]: Object }[] = [
{ name: 'Alice', id: 'alice' },
{ name: 'Bob', id: 'bob' },
{ name: 'Carol', id: 'carol' },
{ name: 'David', id: 'david' }
];
const mentionObj: Mention = new Mention({
target: '#mentionTarget',
dataSource: userData,
fields: { text: 'name', value: 'id' }
});
mentionObj.appendTo('#mention-default');
/* Import a built-in theme */
@import '../node_modules/@syncfusion/ej2/material.css';
Type @ in the textarea — the suggestion popup opens. Type more characters to filter. Press Enter, Tab, or click to insert the selected item as a chip.
const mentionObj: Mention = new Mention({
target: '#mentionTarget',
dataSource: ['JavaScript', 'TypeScript', 'Python', 'Rust'],
mentionChar: '#' // use # as trigger instead of @
});
mentionObj.appendTo('#mention-default');
const mentionObj: Mention = new Mention({
target: '#mentionTarget',
dataSource: userData,
fields: { text: 'name', value: 'id' },
minLength: 2 // popup only appears after typing @ + 2 characters
});
mentionObj.appendTo('#mention-default');
const mentionObj: Mention = new Mention({
target: '#mentionTarget',
dataSource: userData,
fields: { text: 'name', value: 'id' },
highlight: true,
suggestionCount: 5
});
mentionObj.appendTo('#mention-default');
const mentionObj: Mention = new Mention({
target: '#mentionTarget',
dataSource: [
{ name: 'Alice Smith', id: '1' },
{ name: 'Bob Jones', id: '2' }
],
fields: { text: 'name', value: 'id' },
allowSpaces: true // typing "@Alice Smith" still searches
});
mentionObj.appendTo('#mention-default');
const mentionObj: Mention = new Mention({
target: '#mentionTarget',
dataSource: userData,
fields: { text: 'name', value: 'id' },
showMentionChar: true, // chip reads "@Alice" instead of "Alice"
suffixText: ' ' // insert a space after the chip
});
mentionObj.appendTo('#mention-default');
| Property | Type | Default | Purpose |
|---|---|---|---|
target | HTMLElement | string | — | Required. The element to monitor for the trigger character |
dataSource | Object[] | DataManager | string[] | [] | Suggestion list data |
fields | FieldSettingsModel | { text: null, value: null, iconCss: null, groupBy: null } | Map object keys |
mentionChar | string | '@' | Character that opens the popup |
minLength | number | 0 | Min chars after trigger before popup shows |
suggestionCount | number | 25 | Max items shown in popup |
filterType | FilterType | 'Contains' | Match strategy for typed characters |
ignoreCase | boolean | true | Case-insensitive matching |
highlight | boolean | false | Bold matched characters in suggestions |
allowSpaces | boolean | false | Allow spaces within the mention search string |
requireLeadingSpace | boolean | true | Require a space before @ to trigger |
showMentionChar | boolean | false | Prefix inserted chip text with mentionChar |
suffixText | string | null | Text appended after the inserted chip (e.g. ' ') |
debounceDelay | number | 300 | Milliseconds to wait before filtering |
popupHeight | string | number | '300px' | Popup list height |
popupWidth | string | number | 'auto' | Popup list width |
Key Events: select (item picked), change (value updated in editor), filtering (custom filter logic), beforeOpen / opened / closed (popup lifecycle).
Key Methods: showPopup(), hidePopup(), search(text, x, y), disableItem(item), addItem(items, index?), destroy().
The Syncfusion TypeScript ListBox component renders a scrollable list of items from which users can select one or multiple values. Unlike a dropdown, it is always visible — making it ideal for available/selected item lists, permission assignment interfaces, and preference panels. It supports drag-and-drop, toolbar-based dual-list transfer, filtering, grouping, sorting, and checkbox selection.
Key capabilities:
selectionSettings.modeListBox.Inject(CheckBoxSelection)allowDragAndDrop + scopescope + toolbarSettings.itemsallowFiltering + filtering event for custom logicsortOrder: 'Ascending' | 'Descending'itemTemplateenableItems() or fields.disabledaddItems, removeItems, selectItems, moveTo, moveAllTo, getDataList📄 Read: references/listbox-getting-started.md
npm install @syncfusion/ej2-dropdowns<div id="listbox"></div>change event handler📄 Read: references/listbox-data-binding.md
fields mapping (text, value, iconCss, disabled)fields.groupByaddItems, dataBindDataManager and ODataV4Adaptor📄 Read: references/listbox-selection.md
selectionSettings.mode: 'Single')value: ['id1', 'id2']maximumSelectionLength to cap selectionsListBox.Inject(CheckBoxSelection) + selectionSettings.showCheckbox: trueselectionSettings.showSelectAll: trueselectItems() and selectAll()getDataByValues()📄 Read: references/listbox-features.md
allowFiltering, filterBarPlaceholder, filterTypefiltering event + args.updateData()sortOrder: 'Ascending' | 'Descending'scopeenableItems() or fields.disabled📄 Read: references/listbox-dual-list-box.md
scope: '#target-id' + toolbarSettings.itemsmoveUp, moveDown, moveTo, moveFrom, moveAllTo, moveAllFromLeft / Right)moveTo, moveAllTo, moveUp, moveDown, moveTop, moveBottomgetDataList()📄 Read: references/listbox-icons-and-templates.md
fields.iconCssitemTemplate with ${} string template syntaxnoRecordsTemplate customization📄 Read: references/listbox-style-and-appearance.md
.e-listbox-wrapper, .e-list-item, .e-selected, .e-disabled, .e-list-group-itemcssClass for scoped custom stylesitemTemplate + CSSheight and width, RTL support📄 Read: references/listbox-accessibility.md
role, aria-multiselectable, aria-selected)htmlAttributes<label> and aria-liveenableRtl: true or global enableRtl(true)📄 Read: references/listbox-how-to-guides.md
addItems()selectItems()enableItems()filtering eventgetDataByValues() on submit📄 Read: references/listbox-api.md
addItems, enableItems, filter, getDataByValue, getDataByValues, getDataList, getItems, getSortedList, moveAllTo, moveBottom, moveDown, moveTo, moveTop, moveUp, removeItem, removeItems, selectAll, selectItemschange, created, dataBound, destroyed, drag, dragStart, drop, filtering, beforeDrop, beforeItemRenderFieldSettingsModel, SelectionSettingsModel, ToolbarSettingsModel<!-- index.html -->
<link href="node_modules/@syncfusion/ej2-base/styles/tailwind3.css" rel="stylesheet" />
<link href="node_modules/@syncfusion/ej2-inputs/styles/tailwind3.css" rel="stylesheet" />
<link href="node_modules/@syncfusion/ej2-dropdowns/styles/tailwind3.css" rel="stylesheet" />
<div id="listbox"></div>
import { ListBox } from '@syncfusion/ej2-dropdowns';
const data: { [key: string]: Object }[] = [
{ text: 'JavaScript', id: '1' },
{ text: 'TypeScript', id: '2' },
{ text: 'React', id: '3' },
{ text: 'Angular', id: '4' },
{ text: 'Vue', id: '5' }
];
const listBox: ListBox = new ListBox({
dataSource: data,
fields: { text: 'text', value: 'id' },
change: (args) => {
console.log('Selected values:', args.value);
}
});
listBox.appendTo('#listbox');
import { ListBox, CheckBoxSelection } from '@syncfusion/ej2-dropdowns';
ListBox.Inject(CheckBoxSelection); // Must be called before instantiation
const listBox: ListBox = new ListBox({
dataSource: data,
fields: { text: 'text', value: 'id' },
selectionSettings: {
showCheckbox: true,
showSelectAll: true
}
});
listBox.appendTo('#listbox');
<div id="available"></div>
<div id="selected"></div>
import { ListBox } from '@syncfusion/ej2-dropdowns';
const available: ListBox = new ListBox({
dataSource: data,
fields: { text: 'text', value: 'id' },
scope: '#selected',
toolbarSettings: {
items: ['moveTo', 'moveFrom', 'moveAllTo', 'moveAllFrom']
}
});
const selected: ListBox = new ListBox({
dataSource: [],
fields: { text: 'text', value: 'id' }
});
available.appendTo('#available');
selected.appendTo('#selected');
import { ListBox, CheckBoxSelection } from '@syncfusion/ej2-dropdowns';
ListBox.Inject(CheckBoxSelection);
const listBox: ListBox = new ListBox({
dataSource: frameworksData,
fields: { text: 'text', value: 'id' },
selectionSettings: { showCheckbox: true, showSelectAll: true },
maximumSelectionLength: 3 // Allow up to 3 checkboxes
});
listBox.appendTo('#listbox');
const listBox: ListBox = new ListBox({
dataSource: data,
fields: { text: 'text', value: 'id' },
allowFiltering: true,
filterBarPlaceholder: 'Search frameworks...',
filterType: 'Contains'
});
listBox.appendTo('#listbox');
document.getElementById('submitBtn')!.addEventListener('click', () => {
const selectedValues = listBox.value as string[];
const selectedItems = listBox.getDataByValues(selectedValues);
console.log('Submitted:', selectedItems);
});
| Property | Type | Default | Purpose |
|---|---|---|---|
dataSource | array | DataManager | [] | Data to display in the list |
fields | FieldSettingsModel | {} | Map text, value, iconCss, groupBy, disabled |
value | string[] | number[] | boolean[] | [] | Pre-selected or currently selected values |
selectionSettings | SelectionSettingsModel | { mode: 'Multiple' } | Selection mode and checkbox options |
toolbarSettings | ToolbarSettingsModel | { items: [] } | Dual ListBox toolbar configuration |
scope | string | '' | Target ListBox ID for drag-and-drop or toolbar transfer |
allowFiltering | boolean | false | Show filter/search bar |
allowDragAndDrop | boolean | false | Enable drag-and-drop reordering |
sortOrder | SortOrder | null | Sort items: 'Ascending' | 'Descending' |
height | string | number | '' | Fixed height with scroll |
itemTemplate | string | Function | null | Custom item rendering template |
maximumSelectionLength | number | 1000 | Maximum number of selectable items |
enableRtl | boolean | false | Right-to-left rendering |
cssClass | string | '' | Custom CSS class for scoped styling |
The Syncfusion EJ2 JavaScript MultiColumnComboBox renders a combo box with a multi-column popup grid, enabling users to select from structured tabular data. It supports local and remote data, filtering, sorting, grouping, templates, virtualization, and full accessibility compliance.
Package: @syncfusion/ej2-multicolumn-combobox
📄 Read: references/multicolumn-combobox-getting-started.md
npm install @syncfusion/ej2-multicolumn-combobox)<input> target setupnew MultiColumnComboBox({...}).appendTo('#id') initializationdataSource, fields, and columns: ColumnModel[]popupHeight and popupWidth📄 Read: references/multicolumn-combobox-columns.md
ColumnModel (field, header, width, textAlign)template for cell-level custom renderingdisplayAsCheckBox for boolean columnscustomAttributes for column CSS customizationheaderTemplate for custom column headersformat for data formatting (C2 for currency, date skeletons)📄 Read: references/multicolumn-combobox-data-binding.md
dataSourceDataManager and WebApiAdaptor / ODataAdaptor / ODataV4Adaptorfields (text, value, groupBy)query property for filtered/limited data sets📄 Read: references/multicolumn-combobox-filtering.md
allowFilteringfilterType (StartsWith, EndsWith, Contains)filtering event for custom filter logic📄 Read: references/multicolumn-combobox-sorting.md
allowSortingsortOrder (None, Ascending, Descending)sortType (OneColumn, MultipleColumns)📄 Read: references/multicolumn-combobox-grouping.md
fields.groupBygroupTemplate to customize group headers (${key}, ${field}, ${count} tokens)📄 Read: references/multicolumn-combobox-templates.md
itemTemplate for customizing each rowheaderTemplate (on ColumnModel) for custom column headersgroupTemplate for group header customizationfooterTemplate for popup footer contentnoRecordsTemplate for empty state displayactionFailureTemplate for remote fetch error state📄 Read: references/multicolumn-combobox-items.md
text, value, indexplaceholder and floatLabelType for input label behaviorshowClearButton to allow clearing selectiondisabled and readonly stateswidth, popupWidth, popupHeight for sizingcssClass for custom stylinghtmlAttributes for additional HTML attributesgridSettings for grid lines, row height, and alternate rowsaddItems, focusIn, focusOut, showPopup, hidePopup, getDataByValue, getItems📄 Read: references/multicolumn-combobox-virtualization.md
enableVirtualization for large datasetsgridSettings.rowHeight for accurate positioning📄 Read: references/multicolumn-combobox-events.md
change — fired when value changes or item is selectedselect — fired on item selectionopen / close — popup open/close lifecyclefiltering — fired on character input for custom filteringactionBegin / actionComplete / actionFailure — data fetch lifecyclecreated — post-render lifecycle hook📄 Read: references/multicolumn-combobox-localization.md
noRecordsTemplate text using L10n.load() with the 'multicolumncombobox' locale keylocale property for culture-specific rendering'en-US', 'fr-BE', 'de')📄 Read: references/multicolumn-combobox-accessibility.md
role="combobox", aria-expanded, aria-selected, aria-readonly, aria-disabled, aria-owns)Alt+Down/Alt+Up, Arrow keys, PageUp/PageDown, Enter, Esc, Home, End)enableRtl: true📄 Read: references/multicolumn-combobox-api.md
addItems, focusIn, focusOut, getDataByValue, getItems, showPopup, hidePopupColumnModel properties (field, header, width, textAlign, template, headerTemplate, displayAsCheckBox, customAttributes, format)GridSettingsModel properties (rowHeight, gridLines, enableAltRow)FieldSettingsModel properties (text, value, groupBy)// app.ts
import { MultiColumnComboBox, ColumnModel } from '@syncfusion/ej2-multicolumn-combobox';
const empData: { [key: string]: Object }[] = [
{ EmpID: 1001, Name: 'Andrew Fuller', Designation: 'Team Lead', Country: 'England' },
{ EmpID: 1002, Name: 'Robert', Designation: 'Developer', Country: 'USA' },
{ EmpID: 1003, Name: 'Michael', Designation: 'HR', Country: 'Russia' },
{ EmpID: 1004, Name: 'Steven Buchanan', Designation: 'Product Manager', Country: 'Ukraine' }
];
const fields: object = { text: 'Name', value: 'EmpID' };
const columns: ColumnModel[] = [
{ field: 'EmpID', header: 'Employee ID', width: 120 },
{ field: 'Name', header: 'Name', width: 120 },
{ field: 'Designation', header: 'Designation', width: 120 },
{ field: 'Country', header: 'Country', width: 100 }
];
const mccBox: MultiColumnComboBox = new MultiColumnComboBox({
dataSource: empData,
fields: fields,
columns: columns,
placeholder: 'Select an employee'
});
mccBox.appendTo('#multicolumn');
<!-- index.html -->
<input type="text" id="multicolumn" />
/* styles.css */
@import '~@syncfusion/ej2-base/styles/tailwind3.css';
@import '~@syncfusion/ej2-inputs/styles/tailwind3.css';
@import '~@syncfusion/ej2-grids/styles/tailwind3.css';
@import '~@syncfusion/ej2-popups/styles/tailwind3.css';
@import '~@syncfusion/ej2-multicolumn-combobox/styles/tailwind3.css';
const mccBox: MultiColumnComboBox = new MultiColumnComboBox({
dataSource: empData,
fields: fields,
text: 'Michael',
columns: columns
});
mccBox.appendTo('#multicolumn');
const mccBox: MultiColumnComboBox = new MultiColumnComboBox({
dataSource: empData,
fields: fields,
allowFiltering: true,
filterType: 'Contains',
columns: columns
});
mccBox.appendTo('#multicolumn');
import { MultiColumnComboBox, SortOrder, ColumnModel } from '@syncfusion/ej2-multicolumn-combobox';
const mccBox: MultiColumnComboBox = new MultiColumnComboBox({
dataSource: empData,
fields: fields,
allowSorting: true,
sortOrder: SortOrder.Descending,
sortType: 'MultipleColumns',
columns: columns
});
mccBox.appendTo('#multicolumn');
Security: Do not call arbitrary third-party endpoints from client-side code. Route external API requests through a trusted server-side proxy that validates, authenticates, and sanitizes responses.
import { MultiColumnComboBox, ColumnModel } from '@syncfusion/ej2-multicolumn-combobox';
import { DataManager, ODataV4Adaptor } from '@syncfusion/ej2-data';
// Use a trusted server-side proxy. Do not embed third-party URLs directly.
const dataSource: DataManager = new DataManager({
url: 'https://your-trusted-proxy.example/api/customers',
adaptor: new ODataV4Adaptor(),
crossDomain: true
});
const fields: object = { text: 'FirstName', value: 'EmployeeID' };
const columns: ColumnModel[] = [
{ field: 'EmployeeID', header: 'Employee ID', width: 120 },
{ field: 'FirstName', header: 'Name', width: 130 },
{ field: 'Designation', header: 'Designation', width: 120 },
{ field: 'Country', header: 'Country', width: 90 }
];
const mccBox: MultiColumnComboBox = new MultiColumnComboBox({
dataSource: dataSource,
fields: fields,
placeholder: 'Select a name',
popupHeight: '230px',
columns: columns
});
mccBox.appendTo('#multicolumn');
import { MultiColumnComboBox, ChangeEventArgs } from '@syncfusion/ej2-multicolumn-combobox';
const mccBox: MultiColumnComboBox = new MultiColumnComboBox({
dataSource: empData,
fields: fields,
columns: columns,
change: (args: ChangeEventArgs) => {
console.log('Selected value:', args.value);
console.log('Display text:', args.text);
console.log('Item data:', args.itemData);
}
});
mccBox.appendTo('#multicolumn');
| Property | Type | Default | Purpose |
|---|---|---|---|
dataSource | Object[] | DataManager | [] | Data to populate the popup grid |
fields | FieldSettingsModel | {text:null, value:null, groupBy:null} | Maps data keys to display text, hidden value, and group-by |
columns | ColumnModel[] | [] | Column definitions for the popup grid |
value | string | null | Pre-selects an item by its value |
text | string | null | Pre-selects an item by its display text |
index | number | null | Pre-selects an item by zero-based index |
placeholder | string | null | Hint text for the input |
floatLabelType | 'Never' | 'Always' | 'Auto' | 'Never' | Floating label behavior |
allowFiltering | boolean | true | Enables the filter input |
filterType | 'StartsWith' | 'EndsWith' | 'Contains' | 'StartsWith' | Filter match strategy |
allowSorting | boolean | true | Enables column-header sorting |
sortOrder | SortOrder | SortOrder.None | Initial sort direction |
sortType | SortType | 'OneColumn' | One or multi-column sort |
enableVirtualization | boolean | false | Virtual scrolling for large datasets |
enableRtl | boolean | false | Right-to-left rendering |
enablePersistence | boolean | false | Persist value across page reloads |
readonly | boolean | false | Prevent user input |
disabled | boolean | false | Fully disable the component |
showClearButton | boolean | false | Show a clear (×) button |
cssClass | string | '' | Custom CSS class on the root element |
popupHeight | string | number | '300px' | Height of the popup |
popupWidth | string | number | '100%' | Width of the popup |
width | string | number | '100%' | Width of the input element |
gridSettings | GridSettingsModel | {rowHeight:null, gridLines:'Default', enableAltRow:false} | Popup grid appearance |
query | Query | null | Query for remote data |
htmlAttributes | { [key: string]: string } | {} | HTML attributes on the input |
locale | string | '' | Locale code (e.g. 'fr-BE') |
itemTemplate | string | Function | null | Custom row template |
groupTemplate | string | Function | null | Custom group header template |
footerTemplate | string | Function | null | Custom footer template |
noRecordsTemplate | string | Function | 'No records found' | Empty-state template |
actionFailureTemplate | string | Function | 'Request failed' | Remote error template |
references/autocomplete-api.md (opens in a new tab)references/autocomplete-customization.md (opens in a new tab)references/autocomplete-data-binding.md (opens in a new tab)references/autocomplete-filtering.md (opens in a new tab)references/autocomplete-getting-started.md (opens in a new tab)references/autocomplete-highlight-and-suggestions.md (opens in a new tab)references/autocomplete-virtualization.md (opens in a new tab)references/combobox-api.md (opens in a new tab)references/combobox-custom-values.md (opens in a new tab)references/combobox-customization.md (opens in a new tab)references/combobox-data-binding.md (opens in a new tab)references/combobox-filtering.md (opens in a new tab)references/combobox-getting-started.md (opens in a new tab)references/combobox-virtualization.md (opens in a new tab)references/dropdownlist-api.md (opens in a new tab)references/dropdownlist-cascading.md (opens in a new tab)references/dropdownlist-data-binding.md (opens in a new tab)references/dropdownlist-events-and-methods.md (opens in a new tab)references/dropdownlist-features.md (opens in a new tab)references/dropdownlist-filtering.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
67 skills in this plugin
/syncfusion-javascript-3d-chartCreate interactive 3D charts in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to build 3D visualizations, render 3D column/bar charts, configure 3D rotation and depth, visualize data in three dimensions, customize 3D chart appearance, handle 3D interactions, or implement advanced 3D features. Works with TypeScript (webpack/module-based) and JavaScript (CDN/ES5)./syncfusion-javascript-accordionBuild collapsible navigation panels with the Syncfusion TypeScript Accordion component. Use this skill when implementing vertical accordion menus, expanding/collapsing content panels, multi-step wizards, data-driven panels with dynamic content, tabbed navigation alternatives, or nested hierarchical content structures. Covers initialization, expand modes, animations, icons, templates, styling, data binding, and advanced use cases like form wizards./syncfusion-javascript-accumulation-chartImplements Syncfusion JavaScript accumulation charts (Pie, Doughnut, Funnel, Pyramid) for proportional and percentage-based visualizations. Use when displaying categorical or proportional data. Covers legend and label configuration, interactivity, accessibility, and customization. Works with TypeScript (modules) and JavaScript (CDN/ES5).npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-javascript