updateElement

Update the properties of an element in Arrow Navigation.

This function updates the properties of the specified element. You can use this function to programmatically update the properties of an element in your application.

Syntax

import { getArrowNavigation } from '@arrow-navigation/core'

const navigationApi = getArrowNavigation()

navigationApi.updateElement('element-id', {
  // Element Config
})

Parameters

NameTypeDescription
element-idstringThe id of the element to update.
configobjectThe properties to update. See the options