Commit Graph
26 Commits
Author SHA1 Message Date
MattMo fd68b5c79d Added code to reset all scroll positions when a route is shown. This way when a route and new data is rendered it's rendered with default scroll positions. 2024-03-11 12:28:57 -07:00
MattMo 81a44ec7ea Added parameter to route on shown that specifies whether or not the route was shown because we navigated back to it. 2024-01-15 09:54:45 -08:00
MattMo 28e85092c9 Removed the code that tries to reset the scroll position of the route. 2024-01-15 08:41:02 -08:00
MattMo ee1b5c5ca9 Added code to call hideCallback on a route if it was already visible but being renavigated to the hide callback is ran. 2023-10-31 23:26:13 -07:00
MattMo c8c8ba67c5 Added code to reset the element on route change so that if there is a scroll bar it also gets reset. 2023-10-18 17:44:03 -07:00
MattMo 862b01968e Improved hash mode support and fixed some bugs. Cleaned up the code and improved the documentation. 2023-07-10 08:45:09 -07:00
MattMo 0ebd6d1ab4 Cleaned up code and fixed a bug where parameters were not taking into consideration with routes that are not root based. 2023-07-09 22:24:33 -07:00
MattMo ad6faba71d Added code to prevent click event from bubbling since we are navigating to another route. Router state is now initialized with current location to make going back work correctly. 2023-02-01 08:06:38 -08:00
MattMo 6fed40f37b Added a new disabled property for RouterLinks to override their functionality if needed. 2022-12-17 10:14:06 -08:00
MattMo 6a21111c3d Route now is hidden by default so it doesn't open/close on render. 2022-10-27 08:30:19 -07:00
MattMo 02e728de0e Instead of calling update during the ignite template construction, it will be called during ready so that we are not in a rendering context when it is invoked. 2022-10-24 08:40:30 -07:00
MattMo 3a16c62b92 Upgraded to new IgniteHtml register element. 2022-08-26 08:36:21 -07:00
MattMo ce6f5efc38 Added removeParameter function that can remove a query parameter from the route. 2022-05-04 09:03:47 -07:00
MattMo 41815a680d Added keepQuery option to router navigate. 2022-04-22 00:43:36 -07:00
MattMo 0cdf431aa0 Added IgniteTemplate navigate function to allow dynamic routing based on properties or quickly set up routing. 2021-12-28 22:33:36 -08:00
MattMo ecc2711d64 Added route to onShown callback so that UI can be changed based on what route was shown. 2021-12-13 16:49:33 -08:00
MattMo ca243e9b67 Added important to route display state to force a route to not be visible. 2021-12-06 09:27:23 -08:00
MattMo aac9b6d59a Added better support for query parameters in hash mode. 2021-11-25 12:42:21 -08:00
MattMo 6701c19956 Added a managed pop state listener to the route extension so that back events are handled correctly. 2021-11-11 11:43:10 -08:00
MattMo 271e6e41fa Fixed an issue where in hash mode if a route started with / it would break the navigation. 2021-10-13 07:47:11 -07:00
MattMo 0ea44c76b9 Modifying the route extension to have a show and hide callback. 2021-08-25 00:01:10 -07:00
MattMo 783a87da82 Router now supports variables in routes and route template. 2021-08-24 13:40:29 -07:00
MattMo b6d288f422 Added more docs. Router now has a data option that is passed with the event. Added route extension to help other templates react to route events. 2021-08-11 10:45:06 -07:00
MattMo 020e6a3ae8 Router navigate now uses it's own internal state array. Router now has a back function which allows going backwards on different platforms. 2021-07-28 08:40:52 -07:00
MattMo 9bee6456cb RouterMatcher is now Router. Added navigate. Added hash mode. 2021-05-19 10:28:07 -07:00
MattMo 12916f008c Renamed js file to ignite-html-router.js 2021-05-04 14:25:41 -07:00