1.4.5 • Published 3 years ago

router-vanilla v1.4.5

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

Utils

Router

The router class takes four arguments: | Name | Type | Description | | :--- | :--- | :---------- | | root | DOM Element | The outermost element of where the routes will be rendered | | nav | DOM Element | The element the links for the routes will be appended to | | display | DOM Element | The element the routes will be displayed within | | routes | Array of Objects | An array that outlines the routes - to include (optional) sub-routes |

View

A very simple abstract class An implementation of the abstract class - takes one argument, title (document title) - will allow you to inherit baseTitle using super() within the constructor of the extended classes.

The extended classes only require one method to be overwritten -> renderHTML, where you can create the HTML to be rendered per route.

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.2.3

3 years ago

1.3.1

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.3.10

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.11

3 years ago

1.3.12

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago