EntityMetaDartProxy
Defined in: ui.ts:1729
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
Extends
Constructors
Constructor
new EntityMetaDartProxy(
d):EntityMetaDartProxy
Defined in: ui.ts:1731
Parameters
| Parameter | Type |
|---|---|
d | any |
Returns
EntityMetaDartProxy
Overrides
Properties
| Property | Type | Inherited from | Defined in |
|---|---|---|---|
dart | any | ObjectHandler.dart | 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
Inherited from
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
Inherited from
name
Get Signature
get name():
string
Defined in: ui.ts:1577
Returns
string
Inherited from
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
Inherited from
type
Get Signature
get type():
string
Defined in: ui.ts:1736
Type of the object that this meta handles.
Returns
string
Overrides
Methods
fromMarkup()
fromMarkup(
matches):any
Defined in: ui.ts:1665
Extract object from parsed markup description
Parameters
| Parameter | Type |
|---|---|
matches | string[] |
Returns
any
Inherited from
getById()
getById(
id):Promise<any>
Defined in: ui.ts:1590
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<any>
Inherited from
getCanvasRenderer()
getCanvasRenderer():
CanvasRenderer|null
Defined in: ui.ts:1613
Returns
CanvasRenderer | null
Inherited from
ObjectHandler.getCanvasRenderer
getCaption()
getCaption(
x):string
Defined in: ui.ts:1738
String representation of the [item], by default item.toString().
Parameters
| Parameter | Type | Description |
|---|---|---|
x | any | item |
Returns
string
Overrides
getGridCellRenderer()
getGridCellRenderer():
GridCellRenderer<any> |null
Defined in: ui.ts:1618
Returns
GridCellRenderer<any> | null
Inherited from
ObjectHandler.getGridCellRenderer
init()
init():
void
Defined in: ui.ts:1675
Gets called once upon the registration of meta export class.
Returns
void
Inherited from
isApplicable()
isApplicable(
x):boolean
Defined in: ui.ts:1737
Override this method to check whether this meta class should handle the specified object.
Parameters
| Parameter | Type | Description |
|---|---|---|
x | any | specified object. |
Returns
boolean
Overrides
refresh()
refresh(
x):Promise<any>
Defined in: ui.ts:1594
Parameters
| Parameter | Type |
|---|---|
x | any |
Returns
Promise<any>
Inherited from
registerParamFunc()
registerParamFunc(
name,run):void
Defined in: ui.ts:1723
Registers a function that takes applicable objects as the only argument. It will be suggested to run in the context menu for that object, and also in the "Actions" pane on the context panel.
Example: https://public.datagrok.ai/js/samples/ui/docking/docking
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | function name |
run | (param) => any | a function that takes exactly one parameter |
Returns
void
Inherited from
ObjectHandler.registerParamFunc
renderCard()
renderCard(
x,context?):HTMLDivElement
Defined in: ui.ts:1743
Renders card div for the item.
Parameters
| Parameter | Type | Default value |
|---|---|---|
x | any | undefined |
context | any | null |
Returns
HTMLDivElement
Overrides
renderIcon()
renderIcon(
x,context?):HTMLDivElement
Defined in: ui.ts:1740
Renders icon for the item.
Parameters
| Parameter | Type | Default value |
|---|---|---|
x | any | undefined |
context | any | null |
Returns
HTMLDivElement
Overrides
renderMarkup()
renderMarkup(
x,context?):HTMLDivElement
Defined in: ui.ts:1741
Renders markup for the item.
Parameters
| Parameter | Type | Default value |
|---|---|---|
x | any | undefined |
context | any | null |
Returns
HTMLDivElement
Overrides
renderPreview()
renderPreview(
x,params?,path?):Promise<View>
Defined in: ui.ts:1648
Renders preview list for the item.
Parameters
| Parameter | Type |
|---|---|
x | any |
params? | any |
path? | string |
Returns
Promise<View>
Inherited from
renderProperties()
renderProperties(
x,context?):HTMLDivElement
Defined in: ui.ts:1744
Renders properties list for the item.
Parameters
| Parameter | Type | Default value |
|---|---|---|
x | any | undefined |
context | any | null |
Returns
HTMLDivElement
Overrides
ObjectHandler.renderProperties
renderTooltip()
renderTooltip(
x,context?):HTMLDivElement
Defined in: ui.ts:1742
Renders tooltip for the item.
Parameters
| Parameter | Type | Default value |
|---|---|---|
x | any | undefined |
context | any | null |
Returns
HTMLDivElement
Overrides
renderView()
renderView(
x,context?):HTMLDivElement
Defined in: ui.ts:1745
Renders view for the item.
Parameters
| Parameter | Type | Default value |
|---|---|---|
x | any | undefined |
context | any | null |
Returns
HTMLDivElement
Overrides
toMarkup()
toMarkup(
T):string|null
Defined in: ui.ts:1660
Converts object to its markup description
Parameters
| Parameter | Type |
|---|---|
T | any |
Returns
string | null
Inherited from
toString()
toString():
string
Defined in: ui.ts:1579
Returns
string
Inherited from
forEntity()
staticforEntity(object,context?):ObjectHandler<any> |null
Defined in: ui.ts:1698
Parameters
| Parameter | Type | Default value |
|---|---|---|
object | any | undefined |
context | any | null |
Returns
ObjectHandler<any> | null
Inherited from
forSemType()
staticforSemType(semType):Promise<ObjectHandler<any>[]>
Defined in: ui.ts:1709
Parameters
| Parameter | Type |
|---|---|
semType | string |
Returns
Promise<ObjectHandler<any>[]>
Inherited from
list()
staticlist():ObjectHandler<any>[]
Defined in: ui.ts:1690
All registered handlers
Returns
ObjectHandler<any>[]
Inherited from
onResolve()
staticonResolve(observer):Subscription
Defined in: ui.ts:1694
Parameters
| Parameter | Type |
|---|---|
observer | PartialObserver<ObjectHandlerResolutionArgs> |
Returns
Subscription
Inherited from
register()
staticregister(meta):void
Defined in: ui.ts:1678
Registers entity handler.
Parameters
| Parameter | Type |
|---|---|
meta | ObjectHandler |
Returns
void