BootstrapListBox Class
Declaration
class BootstrapListBox extends BootstrapClientEdit
IMPORTANT
Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.
Methods
addItem(text) Method
Declaration
addItem(
text: string
): number
Parameters
Returns
addItem(text, value) Method
Declaration
addItem(
text: string,
value: any
): number
Parameters
Name |
Type |
text |
string |
value |
any |
Returns
addItem(text, value, iconCssClass) Method
Declaration
addItem(
text: string,
value: any,
iconCssClass: string
): number
Parameters
Name |
Type |
text |
string |
value |
any |
iconCssClass |
string |
Returns
addItem(texts) Method
Declaration
addItem(
texts: string[]
): number
Parameters
Returns
addItem(texts, value) Method
Declaration
addItem(
texts: string[],
value: any
): number
Parameters
Name |
Type |
texts |
string[] |
value |
any |
Returns
addItem(texts, value, iconCssClass) Method
Declaration
addItem(
texts: string[],
value: any,
iconCssClass: string
): number
Parameters
Name |
Type |
texts |
string[] |
value |
any |
iconCssClass |
string |
Returns
addItemCssClass(index, className) Method
Declaration
addItemCssClass(
index: number,
className: string
): void
Parameters
Name |
Type |
index |
number |
className |
string |
addItemTextCellCssClass(itemIndex, textCellIndex, className) Method
Declaration
addItemTextCellCssClass(
itemIndex: number,
textCellIndex: number,
className: string
): void
Parameters
Name |
Type |
itemIndex |
number |
textCellIndex |
number |
className |
string |
beginUpdate Method
Declaration
beginUpdate(): void
clearItems Method
Declaration
clearItems(): void
endUpdate Method
Declaration
endUpdate(): void
findItemByText(text) Method
Declaration
findItemByText(
text: string
): BootstrapListBoxItem | null
Parameters
Returns
findItemByValue(value) Method
Declaration
findItemByValue(
value: any
): BootstrapListBoxItem | null
Parameters
Returns
getItem(index) Method
Declaration
getItem(
index: number
): BootstrapListBoxItem | null
Parameters
Returns
getItemBadgeIconCssClass(index) Method
Declaration
getItemBadgeIconCssClass(
index: number
): string
Parameters
Returns
getItemBadgeText(index) Method
Declaration
getItemBadgeText(
index: number
): string
Parameters
Returns
getItemCount Method
Declaration
getItemCount(): number
Returns
getSelectedIndex Method
Declaration
getSelectedIndex(): number
Returns
getSelectedIndices Method
Declaration
getSelectedIndices(): number[]
Returns
getSelectedItem Method
Declaration
getSelectedItem(): BootstrapListBoxItem | null
Returns
getSelectedItems Method
Declaration
getSelectedItems(): BootstrapListBoxItem[]
Returns
getSelectedValues Method
Declaration
getSelectedValues(): any[]
Returns
insertItem(index, text) Method
Declaration
insertItem(
index: number,
text: string
): void
Parameters
Name |
Type |
index |
number |
text |
string |
insertItem(index, text, value) Method
Declaration
insertItem(
index: number,
text: string,
value: any
): void
Parameters
Name |
Type |
index |
number |
text |
string |
value |
any |
insertItem(index, text, value, iconCssClass) Method
Declaration
insertItem(
index: number,
text: string,
value: any,
iconCssClass: string
): void
Parameters
Name |
Type |
index |
number |
text |
string |
value |
any |
iconCssClass |
string |
insertItem(index, texts) Method
Declaration
insertItem(
index: number,
texts: string[]
): void
Parameters
Name |
Type |
index |
number |
texts |
string[] |
insertItem(index, texts, value) Method
Declaration
insertItem(
index: number,
texts: string[],
value: any
): void
Parameters
Name |
Type |
index |
number |
texts |
string[] |
value |
any |
insertItem(index, texts, value, iconCssClass) Method
Declaration
insertItem(
index: number,
texts: string[],
value: any,
iconCssClass: string
): void
Parameters
Name |
Type |
index |
number |
texts |
string[] |
value |
any |
iconCssClass |
string |
makeItemVisible(index) Method
Declaration
makeItemVisible(
index: number
): void
Parameters
off<K> Method
Declaration
off<K extends keyof BootstrapListBoxEventMap>(
eventName?: K,
callback?: (this: BootstrapListBox,
args?: BootstrapListBoxEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapListBox, args?: BootstrapListBoxEventMap[K]) => void |
Type Parameters
Returns
on<K>(eventName, callback) Method
Declaration
on<K extends keyof BootstrapListBoxEventMap>(
eventName: K,
callback: (this: BootstrapListBox,
args?: BootstrapListBoxEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapListBox, args?: BootstrapListBoxEventMap[K]) => void |
Type Parameters
Returns
once<K>(eventName, callback) Method
Declaration
once<K extends keyof BootstrapListBoxEventMap>(
eventName: K,
callback: (this: BootstrapListBox,
args?: BootstrapListBoxEventMap[K]) => void
): this
Parameters
Name |
Type |
eventName |
K |
callback |
(this: BootstrapListBox, args?: BootstrapListBoxEventMap[K]) => void |
Type Parameters
Returns
performCallback(
data: any
): Promise<void>
performCallback(
data: any,
onSuccess: () => void
): void
Name |
Type |
data |
any |
onSuccess |
() => void |
removeItem(index) Method
Declaration
removeItem(
index: number
): void
Parameters
removeItemCssClass(index, className) Method
Declaration
removeItemCssClass(
index: number,
className: string
): void
Parameters
Name |
Type |
index |
number |
className |
string |
removeItemTextCellCssClass(itemIndex, textCellIndex, className) Method
Declaration
removeItemTextCellCssClass(
itemIndex: number,
textCellIndex: number,
className: string
): void
Parameters
Name |
Type |
itemIndex |
number |
textCellIndex |
number |
className |
string |
selectAll Method
Declaration
selectAll(): void
selectIndices(indices) Method
Declaration
selectIndices(
indices: number[]
): void
Parameters
Name |
Type |
indices |
number[] |
selectItems(items) Method
Declaration
selectItems(
items: BootstrapListBoxItem[]
): void
Parameters
selectValues(values) Method
Declaration
selectValues(
values: any[]
): void
Parameters
setItemBadgeIconCssClass(index, cssClass) Method
Declaration
setItemBadgeIconCssClass(
index: number,
cssClass: string
): void
Parameters
Name |
Type |
index |
number |
cssClass |
string |
setItemBadgeText(index, text) Method
Declaration
setItemBadgeText(
index: number,
text: string
): void
Parameters
Name |
Type |
index |
number |
text |
string |
setItemHtml(index, html) Method
Declaration
setItemHtml(
index: number,
html: string
): void
Parameters
Name |
Type |
index |
number |
html |
string |
setItemTextCellHtml(itemIndex, textCellIndex, html) Method
Declaration
setItemTextCellHtml(
itemIndex: number,
textCellIndex: number,
html: string
): void
Parameters
Name |
Type |
itemIndex |
number |
textCellIndex |
number |
html |
string |
setItemTextCellTooltip(itemIndex, textCellIndex, tooltip) Method
Declaration
setItemTextCellTooltip(
itemIndex: number,
textCellIndex: number,
tooltip: string
): void
Parameters
Name |
Type |
itemIndex |
number |
textCellIndex |
number |
tooltip |
string |
setItemTooltip(
index: number,
tooltip: string
): void
Name |
Type |
index |
number |
tooltip |
string |
setSelectedIndex(index) Method
Declaration
setSelectedIndex(
index: number
): void
Parameters
setSelectedItem(item) Method
Declaration
setSelectedItem(
item: BootstrapListBoxItem
): void
Parameters
unselectAll Method
Declaration
unselectAll(): void
unselectIndices(indices) Method
Declaration
unselectIndices(
indices: number[]
): void
Parameters
Name |
Type |
indices |
number[] |
unselectItems(items) Method
Declaration
unselectItems(
items: BootstrapListBoxItem[]
): void
Parameters
unselectValues(values) Method
Declaration
unselectValues(
values: any[]
): void
Parameters