Skip to main content

FUNC_TYPES

const FUNC_TYPES: object

Type declaration

MemberTypeValueDescription
APPstring'app'An application that gets shown in the app store. Signature: app()
AUTOSTARTstring'autostart'Gets invoked at platform startup. Use it wisely as the whole package will get initialized. Signature: autostart()
CELL_EDITORstring'cellEditor'-
CELL_RENDERERstring'cellRenderer'

Creates a cell renderer that is used for rendering cells for specific semantic types.

Semantic type is derived from the cellRenderer-<semType> tag.

Signature: cellRenderer(): GridCellRenderer

CONVERTERstring'converter'Converts values. Has one input and one output
DASHBOARDstring'dashboard'

Makes a widget appear on the welcome screen

Signature: dashboard(): DG.Widget

DIM_RED_POSTPROCESSstring'dim-red-postprocessing-function'-
DIM_RED_PREPROCESSstring'dim-red-preprocessing-function'-
EDITORstring'editor'-
FILE_EXPORTERstring'fileExporter'

Exports a file. Gets added to the "export" menu at startup.

Signature: fileExporter()

FILE_IMPORTERstring'file-handler'Handles custom file formats. The meta.ext parameter should contain a comma-separated list of extensions. Signature: fileImporter(x: string | TypedArray): DataFrame[]
FILE_VIEWERstring'fileViewer'

Creates a viewer (or editor) for a file with the specified extension.

The extension is derived from the fileViewer-<extension> tag.

Used in the file system browser.

Signature: fileViewer(FileInfo): View

FILTERstring'filter'-
FOLDER_VIEWERstring'folderViewer'-
FUNCTION_ANALYSISstring'functionAnalysis'Function analysis. Examples: sensitivity analysis, parameter editor Func => View
HIT_DESIGNER_FUNCTIONstring'HitDesignerFunction'-
HIT_TRIAGE_DATA_SOURCEstring'HitTriageDataSource'-
HIT_TRIAGE_FUNCTIONstring'HitTriageFunction'-
HIT_TRIAGE_SUBMIT_FUNCTIONstring'HitTriageSubmitFunction'-
INITstring'init'Gets invoked when the containing package is initialized Signature: init()
MOLECULE_SKETCHERstring'moleculeSketcher'-
MONOMER_LIB_PROVIDERstring'monomer-lib-provider'-
NOTATION_REFINERstring'notationRefiner'-
PACKAGE_SETTINGS_EDITORstring'packageSettingsEditor'

Edits package settings.

Signature: packageSettingsEditor(): Widget

PANELstring'panel'Context-specific widget that appears on the context panel Signature: panel(x: any): Widget
SCRIPT_HANDLERstring'scriptHandler'-
SEARCH_PROVIDERstring'searchProvider'-
SEM_TYPE_DETECTORstring'semTypeDetector'

Semantic type detector for a column. Gets invoked when a new dataframe is imported into the platform.

Implementation should either set column.semType directly, or return the semantic type that will get assigned.

Signature: semTypeDetector(Column): string

TOOLTIPstring'tooltip'-
TRANSFORMstring'Transform'-
UNIT_CONVERTERstring'unitConverter'-
VALUE_EDITORstring'valueEditor'-
VIEWERstring'viewer'-
WIDGETstring'widget'-
WIDGETSstring'widgets'-

Source

src/const.ts:350