Home Reference Source

Typedef

Static Public Summary
public

Application Data

public

Application Options

public

Application Session

public

TODO: typedef

public

TODO: typedef

public
public

Auth Service Contract TODO: typedef

public

Auth Service Options

public
public

Basic Application Options

public

Clipboard Data

public

TODO: typedef

public

Core Options

public

Core Provider Clipboard Contract TODO: typedef

public

Core Provider Theme Contract TODO: typedef

public

Core Provider DnD Contract TODO: typedef

public

Core Provider Locale Contract TODO: typedef

public

Core Provider Middleware Contract TODO: typedef

public

Core Provider Options

public

Core Provider Packages Contract TODO: typedef

public

Core Provider Session Contract TODO: typedef

public

Core Provider Sound Contract TODO: typedef

public

Core Provider Theme Contract TODO: typedef

public

Core Provider Tray Contract TODO: typedef

public

Core Provider Window Contract TODO: typedef

public

User Data

public

Desktop Options

public

Desktop Service Contract TODO: typedef

public

TODO: typedef

public
public

TODO: typedef

public

Desktop Viewport Rectangle

public
public
public
public
public

Filesystem Adapter Methods TODO: typedef

public

VFS Mountpoint

public

VFS Mountpoint attributes

public

Filesystem Options

public

Login Options

public

Middleware Data

public
public

Notification Options

public

Package Launch Options

public

A package metadata

public

A registered package reference

public
public

PreloaderEntryElement: HTMLScriptElement | HTMLLinkElement

public
public

TODO: typedef

public

TODO: typedef

public

Settings Options

public

Settings Service Contract TODO: typedef

public

TODO: typedef

public

Tray Icon Entry

public

Tray Icon Data

public
public

VFS Download Options

public

VFS File Object

public

VFS Method Options

public

VFS Service Contract TODO: typedef

public

Filesytem Service Contract TODO: typedef

public

VFS Service Options

public

Websocket options

public

Window attributes definition

public

Window dimension definition

public

Window options definition

public

Window position definition

public

Window session

public

Window state definition

Static Public

public ApplicationData: Object source

Application Data

Properties:

NameTypeAttributeDescription
args {foo: *}

Launch arguments

options ApplicationOptions
  • optional

Options

metadata PackageMetadata
  • optional

Package Metadata

public ApplicationOptions: Object source

Application Options

Properties:

NameTypeAttributeDescription
settings object
  • optional

Initial settings

restore object
  • optional

Restore data

windowAutoFocus boolean
  • optional
  • default: true

Auto-focus first created window

sessionable boolean
  • optional
  • default: true

Allow session storage

public ApplicationSession: Object source

Application Session

Properties:

NameTypeAttributeDescription
args {foo: string}
name string
windows WindowSession[]

public AuthAdapter: Object source

TODO: typedef

public AuthAdapterConfig: Object source

TODO: typedef

public AuthForm: Object source

Properties:

NameTypeAttributeDescription
username string
  • optional
password string
  • optional

public AuthProviderContract: Object source

Auth Service Contract TODO: typedef

Properties:

NameTypeAttributeDescription
show Function
login Function
logout Function
user Function

public AuthServiceOptions: Object source

Auth Service Options

public AuthSettings: Object source

Properties:

NameTypeAttributeDescription
adapter AuthAdapterCallback | AuthAdapter
  • optional

Adapter to use

login LoginAdapterCallback | Login
  • optional

Login Adapter to use

config AuthAdapterConfig
  • optional

Adapter configuration

public BasicApplicationOptions: Object source

Basic Application Options

Properties:

NameTypeAttributeDescription
mimeTypes string[]
  • optional

What MIME types to support (all/fallback)

loadMimeTypes string[]
  • optional

What MIME types to support on load

saveMimeTypes string[]
  • optional

What MIME types to support on save

defaultFilename string
  • optional

Default filename of a new file

public ClipboardData: Object source

Clipboard Data

Properties:

NameTypeAttributeDescription
type string
  • optional

Optional data type

data *

public CoreConfig: Object source

TODO: typedef

public CoreOptions: Object source

Core Options

Properties:

NameTypeAttributeDescription
root Element
  • optional

The root DOM element for elements

resourceRoot Element
  • optional

The root DOM element for resources

classNames String[]
  • optional

List of class names to apply to root dom element

splash SplashCallback | Splash
  • optional

Custom callback function for creating splash screen

public CoreProviderClipboardContract: Object source

Core Provider Clipboard Contract TODO: typedef

Properties:

NameTypeAttributeDescription
clear Function
  • optional
set Function
  • optional
has Function
  • optional
get Function
  • optional

public CoreProviderDOMContract: Object source

Core Provider Theme Contract TODO: typedef

Properties:

NameTypeAttributeDescription
script Function
style Function

public CoreProviderDnDContract: Object source

Core Provider DnD Contract TODO: typedef

Properties:

NameTypeAttributeDescription
draggable Function
droppable Function

public CoreProviderLocaleContract: Object source

Core Provider Locale Contract TODO: typedef

Properties:

NameTypeAttributeDescription
format Function
translate Function
translatable Function
translatableFlat Function
getLocale Function
setLocale Function

public CoreProviderMiddlewareContract: Object source

Core Provider Middleware Contract TODO: typedef

Properties:

NameTypeAttributeDescription
add Function
  • optional
get Function
  • optional

public CoreProviderOptions: Object source

Core Provider Options

Properties:

NameTypeAttributeDescription
windowBehavior Function
  • optional

Custom Window Behavior

locales Object
  • optional

Override locales

public CoreProviderPackagesContract: Object source

Core Provider Packages Contract TODO: typedef

Properties:

NameTypeAttributeDescription
launch Function
  • optional
register Function
  • optional
addPackages Function
  • optional
getPackages Function
  • optional
getCompatiblePackages Function
  • optional
running Function
  • optional

public CoreProviderSessionContract: Object source

Core Provider Session Contract TODO: typedef

Properties:

NameTypeAttributeDescription
save Function
load Function

public CoreProviderSoundContract: Object source

Core Provider Sound Contract TODO: typedef

Properties:

NameTypeAttributeDescription
resource Function
play Function

public CoreProviderThemeContract: Object source

Core Provider Theme Contract TODO: typedef

Properties:

NameTypeAttributeDescription
resource Function
icon Function

public CoreProviderTrayContract: Object source

Core Provider Tray Contract TODO: typedef

Properties:

NameTypeAttributeDescription
create Function
  • optional
remove Function
  • optional
list Function
  • optional
has Function
  • optional

public CoreProviderWindowContract: Object source

Core Provider Window Contract TODO: typedef

Properties:

NameTypeAttributeDescription
create Function
list Function
last Function

public CoreUserData: Object source

User Data

Properties:

NameTypeAttributeDescription
username string
id number
  • optional
groups string[]
  • optional
  • default: []

public DeskopOptions: Object source

Desktop Options

Properties:

NameTypeAttributeDescription
contextmenu object[]
  • optional
  • default: {}

Default Context menu items

public DeskopProviderContract: Object source

Desktop Service Contract TODO: typedef

Properties:

NameTypeAttributeDescription
setKeyboardContext Function
openContextMenu Function
addContextMenuEntries Function
applySettings Function
createDropContextMenu Function
getRect Function

public DesktopContextMenuEntry: Object source

TODO: typedef

public DesktopIconViewSettings: Object source

public DesktopSettings: Object source

TODO: typedef

Properties:

NameTypeAttributeDescription
iconview DesktopIconViewSettings
  • optional

public DesktopViewportRectangle: Object source

Desktop Viewport Rectangle

Properties:

NameTypeAttributeDescription
left number
top number
right number
bottom number

public DraggableInstance: Object source

Properties:

NameTypeAttributeDescription
destroy Function

public DraggableOptions: Object source

Properties:

NameTypeAttributeDescription
type string
  • optional
  • default: application/json

Content Type

effect string
  • optional
  • default: move

DnD effect (cursor)

ondragstart DraggableEvent
  • optional

Callback to event (ev) => {}

ondragend DraggableEvent
  • optional

Callback to event (ev) => {}

setDragImage DraggableEvent
  • optional

Set custom drag image (browser dependent)

public DroppableInstance: Object source

Properties:

NameTypeAttributeDescription
destroy Function

public DroppableOptions: Object source

Properties:

NameTypeAttributeDescription
type string
  • optional
  • default: application/json

Content Type

effect string
  • optional
  • default: move

DnD effect (cursor)

ondragenter DroppableEvent
  • optional

Callback to event (ev) => {}

ondragover DroppableEvent
  • optional

Callback to event (ev) => {}

ondragleave DroppableEvent
  • optional

Callback to event (ev) => {}

ondrop DroppedEvent
  • optional

Callback to event (ev, data, files) => {}

strict boolean
  • optional
  • default: false

Drop element must match exactly

public FilesystemAdapterMethods: Object source

Filesystem Adapter Methods TODO: typedef

Properties:

NameTypeAttributeDescription
capabilities Function
readdir Function
readfile Function
writefile Function
copy Function
move Function
rename Function
mkdir Function
unlink Function
exists Function
stat Function
url Function
download Function
search Function
touch Function

public FilesystemMountpoint: Object source

VFS Mountpoint

Properties:

NameTypeAttributeDescription
name string

Name

label string

Label

adapter string

Adater name

root string
  • optional

System adapter root

enabled boolean
  • optional
  • default: true

Enabled state

attributes FilesystemMountpointAttributes
  • optional

Attributes

public FilesystemMountpointAttributes: Object source

VFS Mountpoint attributes

Properties:

NameTypeAttributeDescription
visibility string
  • optional
  • default: 'global'

Visibility in UI

local boolean
  • optional
  • default: true

Local filesystem ?

searchable boolean
  • optional
  • default: true

If can be searched

readOnly boolean
  • optional
  • default: false

Readonly

public FilesystemOptions: Object source

Filesystem Options

Properties:

NameTypeAttributeDescription
adapters {name: FilesystemAdapterWrapper}
  • optional

Adapter registry

mounts FilesystemMountpoint[]
  • optional

Mountpoints

public LoginOptions: Object source

Login Options

Properties:

NameTypeAttributeDescription
title string
  • optional

Title

fields object[]
  • optional

Fields

public MiddlewareData: Object source

Middleware Data

Properties:

NameTypeAttributeDescription
group string
  • optional

Middleware group

public NormalizedEventPosition: Object source

Properties:

NameTypeAttributeDescription
clientX number
clientY number
touch boolean
target Element

public NotificationOptions: Object source

Notification Options

Properties:

NameTypeAttributeDescription
title string

Title

message string

Message

sound string
  • optional
  • default: message

Sound to play

icon string
  • optional

Icon source

timeout number
  • optional
  • default: 5000

Timeout value (0=infinite)

className string
  • optional

Adds a DOM class name to notification

public PackageLaunchOptions: Object source

Package Launch Options

Properties:

NameTypeAttributeDescription
forcePreload boolean
  • optional
  • default: false

Force preload reloading

public PackageMetadata: Object source

A package metadata

Properties:

NameTypeAttributeDescription
name string

The package name

category string
  • optional

Package category

icon string
  • optional

Package icon

singleton boolean
  • optional

If only one instance allowed

autostart boolean
  • optional

Autostart on boot

hidden boolean
  • optional

Hide from launch menus etc.

server string
  • optional

Server script filename

groups string[]
  • optional

Only available for users in this group

files Object[] | string[]
  • optional

Files to preload

title {key: string}

A map of locales and titles

description {key: string}

A map of locales and titles

public PackageReference: Object source

A registered package reference

Properties:

NameTypeAttributeDescription
metadata PackageMetadata

Package metadata

callback Function

Callback to instanciate

public PreloaderEntry: Object source

Properties:

NameTypeAttributeDescription
success boolean
el PreloaderEntryElement
  • optional
entry string
  • optional
error string
  • optional

public PreloaderEntryElement: HTMLScriptElement | HTMLLinkElement source

public PreloaderResult: Object source

Properties:

NameTypeAttributeDescription
errors string[]
elements {string: PreloaderEntryElement}

public SettingsAdapter: Object source

TODO: typedef

public SettingsAdapterConfiguration: Object source

TODO: typedef

public SettingsOptions: Object source

Settings Options

Properties:

NameTypeAttributeDescription
adapter SettingsAdapterCallback | SettingsAdapter
  • optional

Adapter to use

config SettingsAdapterConfiguration
  • optional

Adapter configuration

public SettingsProviderContract: Object source

Settings Service Contract TODO: typedef

Properties:

NameTypeAttributeDescription
save Function
load Function
clear Function
set Function
get Function

public SettingsServiceOptions: Object source

TODO: typedef

Properties:

NameTypeAttributeDescription
config Object
  • optional

public TrayEntry: Object source

Tray Icon Entry

Properties:

NameTypeAttributeDescription
entry TrayEntryData

The given entry data

update Function

Updates entry with given data

destroy Function

Destroy the entry

public TrayEntryData: Object source

Tray Icon Data

Properties:

NameTypeAttributeDescription
key string
  • optional

Used as internal index for tray entry

icon string
  • optional

Icon source

title string
  • optional

The title and tooltip

onclick Function
  • optional

The callback function for clicks

oncontextmenu Function
  • optional

The callback function for contextmenu

public URLResolverOptions: Object source

Properties:

NameTypeAttributeDescription
type string
  • optional

URL type (ws/http)

boolean string
  • optional

Add prefix to URL

public VFSDownloadOptions: Object source

VFS Download Options

Properties:

NameTypeAttributeDescription
readfile boolean
  • optional

Set to false to force backend fetch

public VFSFile: Object source

VFS File Object

Properties:

NameTypeAttributeDescription
path string
filename string
  • optional
isDirectory boolean
  • optional
isFile boolean
  • optional
mime string
  • optional
stat object
  • optional

public VFSMethodOptions: Object source

VFS Method Options

TODO: typedef

public VFSServiceContract: Object source

VFS Service Contract TODO: typedef

Properties:

NameTypeAttributeDescription
readdir Function
readfile Function
writefile Function
copy Function
move Function
rename Function
mkdir Function
unlink Function
exists Function
stat Function
url Function
download Function
search Function
touch Function

public VFSServiceFilesystemContract: Object source

Filesytem Service Contract TODO: typedef

Properties:

NameTypeAttributeDescription
basename Function
pathname Function
pathJoin Function
icon Function
mountpoints Function
mount Function
unmount Function
addMountpoint Function

public VFSServiceOptions: Object source

VFS Service Options

Properties:

NameTypeAttributeDescription
adapters {name: FilesystemAdapter}
  • optional
  • default: {}
mountpoints FilesystemMountpoint[]
  • optional
  • default: []

public WebsocketOptions: Object source

Websocket options

Properties:

NameTypeAttributeDescription
reconnect boolean
  • optional
  • default: true

Enable reconnection

interval number
  • optional
  • default: 1000

Reconnect interval

open boolean
  • optional
  • default: true

Immediately open socket after creation

public WindowAttributes: Object source

Window attributes definition

Properties:

NameTypeAttributeDescription
classNames string[]
  • optional
  • default: []

A list of class names

ontop boolean
  • optional
  • default: false

If always on top

gravity string
  • optional

Gravity (center/top/left/right/bottom or any combination)

resizable boolean
  • optional
  • default: true

If resizable

focusable boolean
  • optional
  • default: true

If focusable

maximizable boolean
  • optional
  • default: true

If window if maximizable

minimizable boolean
  • optional
  • default: true

If minimizable

moveable boolean
  • optional
  • default: true

If moveable

closeable boolean
  • optional
  • default: true

If closeable

header boolean
  • optional
  • default: true

Show header

controls boolean
  • optional
  • default: true

Show controls

visibility string
  • optional
  • default: global

Global visibility, 'restricted' to hide from window lists etc.

clamp boolean
  • optional
  • default: true

Clamp the window position upon creation

droppable boolean
  • optional
  • default: true

If window should have the default drop action

minDimension WindowDimension
  • optional

Minimum dimension

maxDimension WindowDimension
  • optional

Maximum dimension

mediaQueries {name: string}
  • optional

A map of matchMedia to name

public WindowDimension: Object source

Window dimension definition

Properties:

NameTypeAttributeDescription
width number

Width in pixels (or float for percentage in setters)

height number

Height in pixels (or float for percentage in setters)

public WindowOptions: Object source

Window options definition

Properties:

NameTypeAttributeDescription
id string

Window Id (not globaly unique)

title string
  • optional

Window Title

icon string
  • optional

Window Icon

parent Window
  • optional

The parent Window reference

template string | Function
  • optional

The Window HTML template (or function with signature (el, win) for programatic construction)

ondestroy Function
  • optional

A callback function when window destructs to interrupt the procedure

position WindowPosition | string
  • optional

Window position

dimension WindowDimension
  • optional

Window dimension

attributes WindowAttributes
  • optional

Apply Window attributes

state WindowState
  • optional

Apply Window state

public WindowPosition: Object source

Window position definition

Properties:

NameTypeAttributeDescription
left number

Left in pixels (or float for percentage in setters)

top number

Top in pixels (or float for percentage in setters)

public WindowSession: Object source

Window session

Properties:

NameTypeAttributeDescription
id number
maximized boolean
minimized boolean
position WindowPosition
dimension WindowDimension

public WindowState: Object source

Window state definition

Properties:

NameTypeAttributeDescription
title string

Title

icon string

Icon

moving boolean
  • optional
  • default: false

If moving

resizing boolean
  • optional
  • default: false

If resizing

loading boolean
  • optional
  • default: false

If loading

focused boolean
  • optional
  • default: false

If focused

maximized boolean
  • optional
  • default: false

If maximized

mimimized boolean
  • optional
  • default: false

If mimimized

modal boolean
  • optional
  • default: false

If modal to the parent

zIndex number
  • optional
  • default: 10

The z-index (auto calculated)

position WindowPosition
  • optional

Position

dimension WindowDimension
  • optional

Dimension