• Utility function to handle focus tracking for extended linkViews. The LinkFormView and LinkActionsView do not provide any interface to adjust the focus tracking after manually adding buttons to the views.

    This utility helps to add new components to the focus tracking. It adds the given views (e.g., buttons) to the view's focusTracker and inserts the views to the internal _focusables collection by removing all existing views and re-adding all views again in the correct order.

    Parameters

    • parentView: HasFocusTracker & HasFocusables

      the LinkFormView or LinkActionsView to change

    • childViews: default<HTMLElement>[]

      the new views to add to the parentView

    • anchorView: default<HTMLElement>

      an existing view, already present in the parentView

    • positionRelativeToAnchorView: "before" | "after" = "after"

      defines whether to add the childViews before or after the anchorView in focus order

    Returns void