CustomCardView
Base view for working with a collection of objects that reside on the server. Typically, results are filtered by applying AND operation between two filters: permanentFilter (which is set programmatically and is not visible) and searchValue entered by the user.
More details on the smart search syntax: https://datagrok.ai/help/datagrok/smart-search
Extends
Constructors
new CustomCardView()
new CustomCardView(
options):CustomCardView
Parameters
| Parameter | Type |
|---|---|
options | any |
Returns
Overrides
Source
Properties
| Property | Modifier | Type | Default value | Description | Inherited from |
|---|---|---|---|---|---|
_functions | protected | Func[] | [] | - | CardView._functions |
_name | protected | string | 'New View' | - | CardView._name |
_properties | protected | Property[] | [] | - | CardView._properties |
_root | protected | HTMLElement | undefined | - | CardView._root |
dart | public | any | undefined | - | CardView.dart |
factory | public | null | Func | null | Constructor function. No parameters, returns [Widget]. | CardView.factory |
isDetached | public | boolean | false | - | CardView.isDetached |
props | public | any | undefined | - | CardView.props |
subs | public | Subscription[] | undefined | - | CardView.subs |
temp | public | any | undefined | Contains auxiliary information | CardView.temp |
ALL_VIEW_TYPES | readonly | string[] | ... | - | CardView.ALL_VIEW_TYPES |
APPS | readonly | "apps" | 'apps' | - | CardView.APPS |
BROWSE | readonly | "browse" | 'browse' | - | CardView.BROWSE |
DATABASES | readonly | "databases" | 'databases' | - | CardView.DATABASES |
DATA_CONNECTIONS | readonly | "connections" | 'connections' | - | CardView.DATA_CONNECTIONS |
DATA_JOB_RUNS | readonly | "jobs" | 'jobs' | - | CardView.DATA_JOB_RUNS |
DATA_QUERY_RUNS | readonly | "queryruns" | 'queryruns' | - | CardView.DATA_QUERY_RUNS |
DOCKERS | readonly | "dockers" | 'dockers' | - | CardView.DOCKERS |
EMAILS | readonly | "emails" | 'emails' | - | CardView.EMAILS |
FILES | readonly | "files" | 'files' | - | CardView.FILES |
FORUM | readonly | "forum" | 'forum' | - | CardView.FORUM |
FUNCTIONS | readonly | "functions" | 'functions' | - | CardView.FUNCTIONS |
GROUPS | readonly | "groups" | 'groups' | - | CardView.GROUPS |
HELP | readonly | "help" | 'help' | - | CardView.HELP |
JS_EDITOR | readonly | "js" | 'js' | - | CardView.JS_EDITOR |
MODELS | readonly | "models" | 'models' | - | CardView.MODELS |
NOTEBOOKS | readonly | "notebooks" | 'notebooks' | - | CardView.NOTEBOOKS |
OPEN_TEXT | readonly | "text" | 'text' | - | CardView.OPEN_TEXT |
PACKAGES | readonly | "packages" | 'packages' | - | CardView.PACKAGES |
PACKAGE_REPOSITORIES | readonly | "repositories" | 'repositories' | - | CardView.PACKAGE_REPOSITORIES |
PROJECTS | readonly | "projects" | 'projects' | - | CardView.PROJECTS |
QUERIES | readonly | "queries" | 'queries' | - | CardView.QUERIES |
SCRIPT | readonly | "script" | 'script' | - | CardView.SCRIPT |
SCRIPTS | readonly | "scripts" | 'scripts' | - | CardView.SCRIPTS |
SETTINGS | readonly | "settings" | 'settings' | - | CardView.SETTINGS |
SKETCH | readonly | "sketch" | 'sketch' | - | CardView.SKETCH |
USERS | readonly | "users" | 'users' | - | CardView.USERS |
VIEW_LAYOUTS | readonly | "layouts" | 'layouts' | - | CardView.VIEW_LAYOUTS |
WEB_SERVICES | readonly | "webservices" | 'webservices' | - | CardView.WEB_SERVICES |
WELCOME | readonly | "welcome" | 'welcome' | - | CardView.WELCOME |
Accessors
basePath
getbasePath():string
Deprecated
use path instead
setbasePath(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
box
getbox():boolean
setbox(b):void
Parameters
| Parameter | Type |
|---|---|
b | boolean |
Returns
boolean
Source
categoryFilters
getcategoryFilters():object
Category filter properties list
setcategoryFilters(ff):void
Parameters
| Parameter | Type |
|---|---|
ff | object |
Returns
object
Source
children
getchildren():Widget<any>[]
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Source
closing
getclosing():boolean
Whether the view is currently closing.
setclosing(c):void
Parameters
| Parameter | Type |
|---|---|
c | boolean |
Returns
boolean
Source
description
getdescription():string
View description. Used in UI and AI.
setdescription(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
entity
getentity():null|object
setentity(_e):void
Parameters
| Parameter | Type |
|---|---|
_e | null | object |
Returns
null | object
Source
filters
getfilters():object
Text filter properties list
setfilters(ff):void
Parameters
| Parameter | Type |
|---|---|
ff | object |
Returns
object
Source
helpUrl
gethelpUrl():null|string
sethelpUrl(url):void
Parameters
| Parameter | Type |
|---|---|
url | null | string |
Returns
null | string
View help URL.
Source
hierarchy
gethierarchy():string[]
Grouping properties list
sethierarchy(s):void
Parameters
| Parameter | Type |
|---|---|
s | string[] |
Returns
string[]
Source
hierarchyProperties
gethierarchyProperties():object
All possible grouping properties list
sethierarchyProperties(s):void
Parameters
| Parameter | Type |
|---|---|
s | object |
Returns
object
Source
id
getid():string
Returns
string
Source
isPinned
getisPinned():boolean
Returns
boolean
Whether the view is pinned. Pinned views are not closed when a new view is opened.
Source
meta
getmeta():ObjectHandler<any>
Object handler (instructions how to render, drag-and-drop, etc)
setmeta(s):void
Parameters
| Parameter | Type |
|---|---|
s | ObjectHandler<any> |
Returns
ObjectHandler<any>
Source
name
getname():string
View name. It gets shown in the tab handle.
setname(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
objectType
getobjectType():string
Semantic type of the items.
setobjectType(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
parent
getparent():null|Widget<any>
Parent widget up the DOM tree, or null.
Returns
null | Widget<any>
Source
parentCall
getparentCall():undefined|FuncCall
setparentCall(s):void
Parameters
| Parameter | Type |
|---|---|
s | undefined | FuncCall |
Returns
undefined | FuncCall
Source
parentView
getparentView():ViewBase
setparentView(s):void
Parameters
| Parameter | Type |
|---|---|
s | ViewBase |
Returns
Source
path
getpath():string
View URI, relative to the view root
setpath(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
permanentFilter
getpermanentFilter():string
Programmatically defined invisible filter expression.
setpermanentFilter(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
renderMode
getrenderMode():RENDER_MODE
Render mode
setrenderMode(s):void
Parameters
| Parameter | Type |
|---|---|
s | RENDER_MODE |
Returns
Source
ribbonMenu
getribbonMenu():Menu
View menu. Sample: https://public.datagrok.ai/js/samples/ui/views/ribbon
setribbonMenu(menu):void
Parameters
| Parameter | Type |
|---|---|
menu | Menu |
Returns
Source
root
getroot():HTMLElement
Returns the content (visual root) of this view.
Returns
HTMLElement
Source
searchFields
getsearchFields():string[]
setsearchFields(s):void
Parameters
| Parameter | Type |
|---|---|
s | string[] |
Returns
string[]
Source
searchValue
getsearchValue():string
User-specified filter expression.
setsearchValue(s):void
Parameters
| Parameter | Type |
|---|---|
s | string |
Returns
string
Source
showTree
getshowTree():boolean
Grouping mode on
setshowTree(s):void
Parameters
| Parameter | Type |
|---|---|
s | boolean |