Git Product home page Git Product logo

Comments (1)

Anthodpnt avatar Anthodpnt commented on August 10, 2024

Hi @davidelanfranchi,

About the feature to disable Highway on some links you can simply use a target attribute set to self so that Highway knows you want to skip transitions and hard-reload the page... So there is no need to add options or custom attributes because HTML already provide the target="_self" attribute that tells the browser and Highway to keep the default behaviour of the link and open the page in the same window with hard-reload.

We'll try to document this ASAP...

Concerning the event fired before the navigation you can use the NAVIGATE_OUT event that is fired right after a link is clicked... However I cannot see why you would need to know which link is clicked but we have an example using events to check the active link in a menu and change its classname based on the URL visited. It uses the NAVIGATE_IN event for some purposes but you should get the idea...

For the last point I don't really get the idea... I understand the concept of having a method to trigger a navigation to an URL using JS but what do you mean by animating and overlay ? About the AJAX submission or forms submissions in general I think you should keep the default hard-reload behaviour IMO and avoid transitions for this kind of interactions... Anyway with a good use case this feature might be useful but for now we don't have one so we'll keep it in mind and come back to it if needed in the right time...

Thanks for your feedbacks mate !
Anthodpnt

from highway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.