ObjectHandler<T>
Defined in: ui.ts:1565
Override the corresponding methods, and register an instance to let Datagrok know how to handle objects of the specified type.
isApplicable is used to associate an object with the handler. When handling an object x, the platform uses the first registered handler that claims that it is applicable to that object.
TODO: search, destructuring to properties
Example: https://public.datagrok.ai/js/samples/ui/handlers/handlers
Extended by
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Constructors
Constructor
new ObjectHandler<
T>():ObjectHandler<T>
Returns
ObjectHandler<T>
Properties
| Property | Type | Defined in |
|---|---|---|
dart | any | ui.ts:1566 |
Accessors
helpUrl
Get Signature
get helpUrl():
string|null
Defined in: ui.ts:1573
URL of help page for the object that this meta handles.
Returns
string | null
markupRegexp
Get Signature
get markupRegexp():
string|null
Defined in: ui.ts:1670
Creates a regexp for detecting markup descriptions of an object
Returns
string | null
name
Get Signature
get name():
string
Defined in: ui.ts:1577
Returns
string
regexpExample
Get Signature
get regexpExample(): {
example:string;nonVariablePart:string;regexpMarkup:string; } |null
Defined in: ui.ts:1586
Will be used by search providers to get suggestions (like chembl which has regexp matcher) For something like CHEMBL object handler, it should return: regexpMarkup: 'CHEMBL[0-9]+', example: 'CHEMBL1234', nonVariablePart: 'CHEMBL'
Returns
{ example: string; nonVariablePart: string; regexpMarkup: string; } | null
type
Get Signature
get type():
string
Defined in: ui.ts:1568
Type of the object that this meta handles.
Returns
string
Methods
fromMarkup()
fromMarkup(
matches):any
Defined in: ui.ts:1665
Extract object from parsed markup description
Parameters
| Parameter | Type |
|---|---|
matches | string[] |
Returns
any