Skip to main content

Control Class

Declaration

class Control

Remarks

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.

Properties

name Property

Declaration

readonly name: string

Property Value

Type
string

Methods

adjustControl Method

Declaration

adjustControl(): void

getHeight Method

Declaration

getHeight(): number

Returns

Type
number

getMainElement Method

Declaration

getMainElement(): any

Returns

Type
any

getParentControl Method

Declaration

getParentControl(): any

Returns

Type
any

getVisible Method

Declaration

getVisible(): boolean

Returns

Type
boolean

getWidth Method

Declaration

getWidth(): number

Returns

Type
number

inCallback Method

Declaration

inCallback(): boolean

Returns

Type
boolean

off<K> Method

Declaration

off<K extends keyof ControlEventMap>(): this

Type Parameters

Name Type
K keyof

Returns

Type
this

off<K>(eventName) Method

Declaration

off<K extends keyof ControlEventMap>(
    eventName: K
): this

Parameters

Name Type
eventName K

Type Parameters

Name Type
K keyof

Returns

Type
this

off<K>(eventName, callback) Method

Declaration

off<K extends keyof ControlEventMap>(
    eventName: K,
    callback: (this: Control,
    args?: ControlEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: Control, args?: ControlEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

on<K>(eventName, callback) Method

Declaration

on<K extends keyof ControlEventMap>(
    eventName: K,
    callback: (this: Control,
    args?: ControlEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: Control, args?: ControlEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

once<K>(eventName, callback) Method

Declaration

once<K extends keyof ControlEventMap>(
    eventName: K,
    callback: (this: Control,
    args?: ControlEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: Control, args?: ControlEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

sendMessageToAssistiveTechnology(message) Method

Declaration

sendMessageToAssistiveTechnology(
    message: string
): void

Parameters

Name Type
message string

setHeight(height) Method

Declaration

setHeight(
    height: number
): void

Parameters

Name Type
height number

setVisible(visible) Method

Declaration

setVisible(
    visible: boolean
): void

Parameters

Name Type
visible boolean

setWidth(width) Method

Declaration

setWidth(
    width: number
): void

Parameters

Name Type
width number