Skip to main content

MarkdownInput

Defined in: src/widgets/markdown-input.ts:14

Base class for JS value editors

Extends

Properties

PropertyTypeInherited fromDefined in
dartanyJsInputBase.dartsrc/widgets/inputs-base.ts:22

Accessors

attachedImages

Get Signature

get attachedImages(): string[]

Defined in: src/widgets/markdown-input.ts:76

Returns

string[]


caption

Get Signature

get caption(): string

Defined in: src/widgets/inputs-base.ts:56

Returns

string

Set Signature

set caption(s): void

Defined in: src/widgets/inputs-base.ts:59

Parameters
ParameterType
sstring
Returns

void

Inherited from

JsInputBase.caption


captionLabel

Get Signature

get captionLabel(): HTMLElement

Defined in: src/widgets/inputs-base.ts:69

Returns

HTMLElement

Inherited from

JsInputBase.captionLabel


classList

Get Signature

get classList(): DOMTokenList

Defined in: src/widgets/inputs-base.ts:165

Returns

DOMTokenList

Inherited from

JsInputBase.classList


dataType

Get Signature

get dataType(): string

Defined in: src/widgets/markdown-input.ts:74

Data type this input can edit. See Type.

Returns

string

Overrides

JsInputBase.dataType


enabled

Get Signature

get enabled(): boolean

Defined in: src/widgets/inputs-base.ts:95

Whether the input is enabled

Returns

boolean

Set Signature

set enabled(v): void

Defined in: src/widgets/inputs-base.ts:96

Parameters
ParameterType
vboolean
Returns

void

Inherited from

JsInputBase.enabled


format

Get Signature

get format(): string

Defined in: src/widgets/inputs-base.ts:66

Value format.

Returns

string

Set Signature

set format(s): void

Defined in: src/widgets/inputs-base.ts:67

Parameters
ParameterType
sstring
Returns

void

Inherited from

JsInputBase.format


input

Get Signature

get input(): HTMLElement

Defined in: src/widgets/inputs-base.ts:193

Returns the actual input

Returns

HTMLElement

Inherited from

JsInputBase.input


inputType

Get Signature

get inputType(): string

Defined in: src/widgets/markdown-input.ts:72

Input type identifier (such as "Slider" for the slider input). See InputType.

Returns

string

Overrides

JsInputBase.inputType


notify

Get Signature

get notify(): boolean

Defined in: src/widgets/inputs-base.ts:79

Whether events are thrown on value set

Returns

boolean

Set Signature

set notify(v): void

Defined in: src/widgets/inputs-base.ts:80

Parameters
ParameterType
vboolean
Returns

void

Inherited from

JsInputBase.notify


nullable

Get Signature

get nullable(): boolean

Defined in: src/widgets/inputs-base.ts:75

Whether empty values are allowed

Returns

boolean

Set Signature

set nullable(v): void

Defined in: src/widgets/inputs-base.ts:76

Parameters
ParameterType
vboolean
Returns

void

Inherited from

JsInputBase.nullable


onChanged

Get Signature

get onChanged(): Observable<T>

Defined in: src/widgets/inputs-base.ts:103

Occurs when [value] is changed, either by user or programmatically.

Returns

Observable<T>

Inherited from

JsInputBase.onChanged


onInput

Get Signature

get onInput(): Observable<Event>

Defined in: src/widgets/inputs-base.ts:106

Occurs when [value] is changed by user.

Returns

Observable<Event>

Inherited from

JsInputBase.onInput


property

Get Signature

get property(): any

Defined in: src/widgets/inputs-base.ts:62

Property if associated with

Returns

any

Set Signature

set property(p): void

Defined in: src/widgets/inputs-base.ts:63

Parameters
ParameterType
pProperty
Returns

void

Inherited from

JsInputBase.property


readOnly

Get Signature

get readOnly(): boolean

Defined in: src/widgets/inputs-base.ts:91

Whether the input is readonly

Returns

boolean

Set Signature

set readOnly(v): void

Defined in: src/widgets/inputs-base.ts:92

Parameters
ParameterType
vboolean
Returns

void

Inherited from

JsInputBase.readOnly


root

Get Signature

get root(): HTMLElement

Defined in: src/widgets/inputs-base.ts:54

Visual root (typically a div element that contains caption and input)

Returns

HTMLElement

Inherited from

JsInputBase.root


stringValue

Get Signature

get stringValue(): string

Defined in: src/widgets/inputs-base.ts:198

String representation of the value

Returns

string

Set Signature

set stringValue(value): void

Defined in: src/widgets/inputs-base.ts:199

String representation of the value

Parameters
ParameterType
valuestring
Returns

void

Inherited from

JsInputBase.stringValue


value

Get Signature

get value(): T

Defined in: src/widgets/inputs-base.ts:195

Input value

Returns

T

Set Signature

set value(value): void

Defined in: src/widgets/inputs-base.ts:196

Input value

Parameters
ParameterType
valueT
Returns

void

Inherited from

JsInputBase.value


visible

Get Signature

get visible(): boolean

Defined in: src/widgets/inputs-base.ts:99

Whether the input is visible. When set, also updates the visibility of its category header.

Returns

boolean

Set Signature

set visible(v): void

Defined in: src/widgets/inputs-base.ts:100

Parameters
ParameterType
vboolean
Returns

void

Inherited from

JsInputBase.visible

Methods

addCaption()

addCaption(caption): InputBase<string>

Defined in: src/widgets/inputs-base.ts:131

Adds the specified caption

Parameters

ParameterType
captionstring

Returns

InputBase<string>

Inherited from

JsInputBase.addCaption


addOptions()

addOptions(options): InputBase<string>

Defined in: src/widgets/inputs-base.ts:143

Adds the specified options

Parameters

ParameterType
optionsHTMLElement

Returns

InputBase<string>

Inherited from

JsInputBase.addOptions


addPatternMenu()

addPatternMenu(pattern): void

Defined in: src/widgets/inputs-base.ts:149

Adds a usage example to the input's hamburger menu

Parameters

ParameterType
patternany

Returns

void

Inherited from

JsInputBase.addPatternMenu


addPostfix()

addPostfix(postfix): InputBase<string>

Defined in: src/widgets/inputs-base.ts:137

Adds the specified postfix

Parameters

ParameterType
postfixstring

Returns

InputBase<string>

Inherited from

JsInputBase.addPostfix


addValidator()

addValidator(validator): void

Defined in: src/widgets/inputs-base.ts:155

Adds a validator that accepts a string representation of the edited value and returns null if valid, or error message if invalid

Parameters

ParameterType
validator(value) => string | null

Returns

void

Inherited from

JsInputBase.addValidator


fireChanged()

fireChanged(): any

Defined in: src/widgets/inputs-base.ts:121

Fires the 'changed' event (value has changed). See also fireInput

Returns

any

Inherited from

JsInputBase.fireChanged


fireInput()

fireInput(): any

Defined in: src/widgets/inputs-base.ts:126

Fires the 'input' event (user input). See also fireChanged

Returns

any

Inherited from

JsInputBase.fireInput


getInput()

getInput(): HTMLElement

Defined in: src/widgets/markdown-input.ts:70

Returns

HTMLElement

Overrides

JsInputBase.getInput


getStringValue()

getStringValue(): string

Defined in: src/widgets/markdown-input.ts:84

Returns

string

Overrides

JsInputBase.getStringValue


getValue()

getValue(): string

Defined in: src/widgets/markdown-input.ts:88

Returns

string

Overrides

JsInputBase.getValue


init()

init(): any

Defined in: src/widgets/inputs-base.ts:116

Returns

any

Inherited from

JsInputBase.init


load()

load(s): any

Defined in: src/widgets/inputs-base.ts:114

Loads the value. Used in dialog history. See also load

Parameters

ParameterType
sany

Returns

any

Inherited from

JsInputBase.load


save()

save(): any

Defined in: src/widgets/inputs-base.ts:109

Saves the value. Used in dialog history. See also load

Returns

any

Inherited from

JsInputBase.save


setStringValue()

setStringValue(value): void

Defined in: src/widgets/markdown-input.ts:92

Parameters

ParameterType
valuestring

Returns

void

Overrides

JsInputBase.setStringValue


setTooltip()

setTooltip(msg, tooltipCheck?): InputBase<string>

Defined in: src/widgets/inputs-base.ts:160

Sets the tooltip

Parameters

ParameterTypeDefault value
msgstringundefined
tooltipCheck(() => boolean) | nullnull

Returns

InputBase<string>

Inherited from

JsInputBase.setTooltip


setValue()

setValue(value): void

Defined in: src/widgets/markdown-input.ts:96

Parameters

ParameterType
valueany

Returns

void

Overrides

JsInputBase.setValue


validate()

validate(): boolean

Defined in: src/widgets/inputs-base.ts:172

Performs immediate validation of the input and returns the result.

Returns

boolean

True if the input is valid; otherwise, false.

Inherited from

JsInputBase.validate


create()

static create(caption?, options?): MarkdownInput

Defined in: src/widgets/markdown-input.ts:26

Parameters

ParameterType
caption?string
options?MarkdownConfig

Returns

MarkdownInput


forColumn()

static forColumn<T>(column): InputBase<T | null>

Defined in: src/widgets/inputs-base.ts:41

Creates input for the specified column

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
columnColumn<T>

Returns

InputBase<T | null>

Inherited from

JsInputBase.forColumn


forInputType()

static forInputType(inputType): InputBase

Defined in: src/widgets/inputs-base.ts:36

Creates input for the specified input type

Parameters

ParameterType
inputTypestring | InputType

Returns

InputBase

Inherited from

JsInputBase.forInputType


forProperty()

static forProperty(property, source?): InputBase

Defined in: src/widgets/inputs-base.ts:31

Creates input for the specified property, and optionally binds it to the specified object

Parameters

ParameterTypeDefault value
propertyPropertyundefined
sourceanynull

Returns

InputBase

Inherited from

JsInputBase.forProperty