Zum Hauptinhalt springen

FileSearchOptions

FileSearchOptions = object

Properties

searchScript?

optional searchScript: string | (params) => TableDialogOptions | void

(Optional) Portalskript / Clientskript, welches ausgelöst wird, wenn die Suche beginnt


searchScriptFallback?

optional searchScriptFallback: string


renderType?

optional renderType: "dashboard" | "gadget"

(Optional) Das Gadget verhält sich wie ein Dashboard Gadget. Wenn dashboard, dann wird eine doTile() Funktion zur Verfügung gestellt, mit der Dashboard Gadget geladen werden kann. Wenn gadget, dann wird eine build() Funktion zur Verfügung gestellt, mit der man das FileSearch Gadget als normales Gadget benutzen kann (gadgetAction='build').

Default

true

callbackScript?

optional callbackScript: string | (selectedRow) => void

(Optional) Portalskript / Clientskript, welches ausgelöst wird, wenn der User eine Zeile ausgewählt hat


id?

optional id: string

(Optional) Eine eindeutige Id für das Gadget


tile?

optional tile: boolean

⚠️ Deprecated, nicht mehr verwenden: (Optional) Aktiviert den Kachelmodus. Das Gadget wird mit Rahmen und Überschrift angezeigt.

Default

false

Deprecated


title?

optional title: string

(Optional) Überschrift, wenn im Kachelmodus

Default

"Wo ist mein Beleg?"

placeholder?

optional placeholder: string

(Optional) Platzhalter in Eingabemaskse

Default

"Wo ist mein Beleg?"

iconClass?

optional iconClass: string

(Optional) Icon neben Eingabemaske.

warnung

Möchte man das Gadget in einem Dashboard anzeigen, so muss man das Icon in folgendem Format angeben: entypo:search

Default

"entypo search"

showButton?

optional showButton: boolean

(Optional) Such-Schaltfläche anzeigen?

Default

false

showClearButton?

optional showClearButton: boolean

(Optional) Leeren-Schaltfläche anzeigen?

Default

false

clearButtonText?

optional clearButtonText: string

(Optional) Leeren-Schaltfläche Anzeigetext

Default

"Leeren"

clearButtonScript?

optional clearButtonScript: string | (options) => void

(Optional) Leeren-Schaltfläche Callback

Default

null

brand?

optional brand: boolean

(Optional) One Unity Logo einblenden?

Default

true

searchButtonText?

optional searchButtonText: string

(Optional) Such-Schaltfläche Anzeigetext

Default

"Suchen"

searchFields?

optional searchFields: FileSearchFieldOption[] | string[]

(Optional) Suchfelder


fileTypes?

optional fileTypes: string[]

(Optional) Mappentypen


archiveViews?

optional archiveViews: string[]

(Optional) EEx Views


maxPastDays?

optional maxPastDays: number

(Optional) Filter für Erstelldatum, Anzahl Tage rückwirkend


searchValue?

optional searchValue: string

(Optional) Vordefinierte Sucheingabe


params?

optional params: Record<string, CustomSearchOptionsParam>

(Optional) Zusätzliche Eingabemöglichkeiten