Zum Hauptinhalt springen

FolderCounterOptions

FolderCounterOptions = object

Properties

id?

optional id: string

Optional Gadget-ID.


title?

optional title: string

Alternative Title


folders

folders: GadgetFolder[]

Array of folders to use.

folders: [{
id: "1234",
name: "key",
label: "Eingang",
size: 10
}],

sumSizeFromSubfolder?

optional sumSizeFromSubfolder: boolean

Should display a sum from all subfolder


collapsed?

optional collapsed: boolean

Should collapse all sub folders?

Default

false

animateSize?

optional animateSize: boolean

Should animate the count up of total files?

Default

true

callbackScript?

optional callbackScript: string

Define a custom callback script, which should be called, when iterating through sub folders.

Default

"ou.sp.gadget.FolderCounterHandler"

renderType?

optional renderType: "dashboard" | "gadget"

Specifies how the gadget should render itself. If dashboard, the gadget will provide a doTile() function. If gadget, the gadget will provide a build() function, which should be set as gadgetAction.

Default

"gadget"