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

Methods

  • 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

  • Returns all li-elements in the list.

    Returns HTMLLIElement[]

  • Returns data-item-key of the selected element.

    Returns string

  • 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

  • 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

  • Reloads the sortable list

    Returns Promise<unknown>

  • Mark the element by data-item-primarykey (rec id).

    Parameters

    • id: string | number

      which element should be marked as selected

    Returns void