All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.

NusaCustomControlType Interface

Declaration

export interface NusaCustomControlType

Properties

newlineFormat Property

Declaration

newlineFormat: string

Property Value

Type
string

paragraphFormat Property

Declaration

paragraphFormat: string

Property Value

Type
string

Methods

getSelection(element) Method

Declaration

getSelection(element: HTMLElement): {
    start: number;
    length: number;
}

Parameters

Name Type
element HTMLElement

Returns

Type
{length: number, start: number}

getSelectionText(element) Method

Declaration

getSelectionText(
    element: HTMLElement
): string

Parameters

Name Type
element HTMLElement

Returns

Type
string

getText(element) Method

Declaration

getText(
    element: HTMLElement
): string

Parameters

Name Type
element HTMLElement

Returns

Type
string

replaceText(element, text, fromPos, length) Method

Declaration

replaceText(
    element: HTMLElement,
    text: string,
    fromPos: number,
    length: number
): void

Parameters

Name Type
element HTMLElement
text string
fromPos number
length number

setSelection(element, start, length) Method

Declaration

setSelection(
    element: HTMLElement,
    start: number,
    length: number
): void

Parameters

Name Type
element HTMLElement
start number
length number