Options
Menu

Sortable lists will be used to display entries in list format.
The order of entries in the sortable list can be changed as you like.

Hierarchy

  • UpDataControl
    • UpSortableListControl

Index

Methods

doesKeyExist

  • doesKeyExist(id: string | number, kind: string): boolean
  • Checks if data-item-key or data-item-primarykey exists.

    Parameters

    • id: string | number

      get checked if it's exist

    • kind: string

      of attribute which should be checked

    Returns boolean

getEntries

  • getEntries(): HTMLLIElement[]
  • Returns all li-elements in the list.

    Returns HTMLLIElement[]

getValue

  • getValue(): string
  • Returns data-item-key of the selected element.

    Returns string

markAsSelected

  • markAsSelected(id: string | number): boolean
  • Marks element while mousedown or function call as selected and writes data-key into input field.

    Parameters

    • id: string | number

      which element should be marked as selected

    Returns boolean

moveElement

  • moveElement(idFrom: string, idTo: string): void
  • User can move elements by using this function

    Parameters

    • idFrom: string

      Element which should be moved

    • idTo: string

      Is the parent element of idFrom

    Returns void

reload

  • reload(): Promise<unknown>
  • Reloads the sortable list

    Returns Promise<unknown>

setValueByRecId

  • setValueByRecId(id: string | number): void
  • Mark the element by data-item-primarykey (rec id).

    Parameters

    • id: string | number

      which element should be marked as selected

    Returns void