Comments (1)
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:
- Assign a callback function to
navigableFilter
andreturn false
on specific elements when you need. - Assign an exclusive selector, e.g. assign
'.navigable:not(.disabled)'
and toggledisabled
class when needed. - Update the
selector
of the section bySpatialNavigation.set()
according to the up-to-date navigable element set.
Hope it helps.
from js-spatial-navigation.
Related Issues (20)
- Issue when navigating in with inner focusable elements
- NPM metadata claims license is ISC (is actually MPL-2.0) HOT 2
- Trigger with smart tv browser the keycode up, down, right and left HOT 2
- Issue while using in my application HOT 3
- Want to use on screen buttons to navigate the screen HOT 1
- I'm an idiot, can someone explain to me what a sectionID is? i've been reading the Documentation back and forth and i dont find anything that explains it.... HOT 1
- DefaultElement is not working properly with selectors HOT 3
- can navigate but not click on dynamic dom eliments HOT 7
- Input text element. When given focus, the left/right arrows are locked. HOT 1
- Suggestion: add preventScroll focus option as an option.
- Can the page be scrolled to the top/bottom if the there are no focusable items at the top/bottom? HOT 1
- i need some help to make the Videojs video player buttons navigable HOT 5
- Making it work on WebOS for app development HOT 4
- Back Button functionality? HOT 4
- Spatial Navigation in Browser
- Element losing Focus when clicked out of the page
- Prevent user from holding keydown for too long or repeated same key
- Typescript definitions HERE: please help to publish it :)
- WebOS TV with Spatial Nav and HTML Select boxes? HOT 1
- a function to force recompute focusable elements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-spatial-navigation.