40 Commits

Author SHA1 Message Date
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
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
28e85092c9 Removed the code that tries to reset the scroll position of the route. 2024-01-15 08:41:02 -08:00
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
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
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
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
8560e24761 Added missing readme file. 2023-04-20 06:37:01 -07:00
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
6fed40f37b Added a new disabled property for RouterLinks to override their functionality if needed. 2022-12-17 10:14:06 -08:00
6a21111c3d Route now is hidden by default so it doesn't open/close on render. 2022-10-27 08:30:19 -07:00
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
3a16c62b92 Upgraded to new IgniteHtml register element. 2022-08-26 08:36:21 -07:00
ce6f5efc38 Added removeParameter function that can remove a query parameter from the route. 2022-05-04 09:03:47 -07:00
41815a680d Added keepQuery option to router navigate. 2022-04-22 00:43:36 -07:00
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
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
05aaf6cf39 Merge branch 'HEAD' into origin/master 2021-12-06 09:27:40 -08:00
ca243e9b67 Added important to route display state to force a route to not be visible. 2021-12-06 09:27:23 -08:00
aac9b6d59a Added better support for query parameters in hash mode. 2021-11-25 12:42:21 -08:00
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
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
0ea44c76b9 Modifying the route extension to have a show and hide callback. 2021-08-25 00:01:10 -07:00
783a87da82 Router now supports variables in routes and route template. 2021-08-24 13:40:29 -07:00
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
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
f4171fdca1 Merge branch 'HEAD' 2021-05-19 10:29:01 -07:00
9bee6456cb RouterMatcher is now Router. Added navigate. Added hash mode. 2021-05-19 10:28:07 -07:00
12916f008c Renamed js file to ignite-html-router.js 2021-05-04 14:25:41 -07:00
b821e2e88a Added strict flag to ignite router view to allow stricter route control. 2021-01-25 00:38:18 -08:00
8ca79aaead Fixed a few bugs with route matching for router view and router links. 2021-01-22 15:14:37 -08:00
6d74befbb3 Added css marker to style so we can get syntax highlighting. 2020-12-24 17:47:24 -08:00
50c4a75b49 Adding active class to router link element as well and cleaned up code. 2020-12-12 13:28:32 -08:00
39ed96ccb4 Fixed a few bugs, added better documentation. 2020-11-08 16:14:50 -08:00
bf48cac433 Added support for multiple route checking for router links and router views. 2020-11-02 08:15:12 -08:00
af88f24a29 Allowed multiple children to be specified in router link constructor. Adjusted styling to display flex and center. 2020-10-28 10:03:28 -07:00
1dc47834e5 Ignite router now uses ready function from ignite element so that the router link and router view is setup once the page is fully loaded. 2020-09-11 07:54:17 -07:00
fbcb4e5f46 Added route matching and initial working functionality for the router link and router view. Next up is getting afterRender working correctly for Ignite so that the correct router view can be displayed once the page is loaded. 2020-09-10 22:45:28 -07:00
8bd0a9e661 Testing pop and push state events on windows to see how the router might work. 2020-09-10 18:55:49 -07:00
85fb265651 Working on initial router code. 2020-09-08 15:44:26 -07:00