luke-chang / js-spatial-navigation

A javascript-based implementation of Spatial Navigation.
Mozilla Public License 2.0
371 stars 117 forks source link

API #11

Closed ranilwallace closed 7 years ago

ranilwallace commented 7 years ago

Hi, i tried to remove a element from being navigable using SpatialNavigation.remove("selector") but it doesnt seem to work at all. If i pause the nav though, that works but i just wanna remove and element from being navigable for a while.

luke-chang commented 7 years ago

Hi, @lauvetech,

SpatialNavigation.remove() is used for removing the section added previously by SpatialNavigation.add(). It is not able to remove a specific element from the current section's definition.

However, there are several ways to achieve your goal:

Hope it helps.