Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TrivialUnitBoxConfig<U>

Type parameters

  • U

Hierarchy

Index

Properties

Optional allowNullAmount

allowNullAmount: boolean

Optional amount

amount: number

Optional decimalPrecision

decimalPrecision: number

Optional decimalSeparator

decimalSeparator: string

Optional editingMode

editingMode: EditingMode

Optional entries

entries: U[]

The initial list of suggested entries.

Optional entryRenderingFunction

entryRenderingFunction: RenderingFunction<U>

Rendering function used to display a suggested entry (i.e. an entry displayed in the dropdown).

param
returns

HTML string

default

Using the image2LinesTemplate from TrivialCore.

Optional matchingOptions

matchingOptions: MatchingOptions

Used for highlighting suggested entries. Also used by the default filtering functions int TrivialCore.

default

{ matchingMode: 'contains', ignoreCase: true, maxLevenshteinDistance: 1 }

Optional noEntriesTemplate

noEntriesTemplate: string

Optional openDropdownOnEditorClick

openDropdownOnEditorClick: boolean

Optional queryFunction

queryFunction: QueryFunction<U>

Optional queryOnNonNumberCharacters

queryOnNonNumberCharacters: boolean

Optional selectedEntry

selectedEntry: U

The initially selected entry. (Caution: use selectedEntries for TrivialTagBox).

Optional selectedEntryRenderingFunction

selectedEntryRenderingFunction: function

Type declaration

    • (entry: U): string
    • Parameters

      • entry: U

      Returns string

Optional showTrigger

showTrigger: boolean

Optional spinnerTemplate

spinnerTemplate: string

HTML string defining the spinner to be displayed while entries are being retrieved.

Optional thousandsSeparator

thousandsSeparator: string

Optional unitDisplayPosition

unitDisplayPosition: "left" | "right"

Optional unitIdProperty

unitIdProperty: string

Optional unitValueProperty

unitValueProperty: string

Generated using TypeDoc