A collection of tools intended to augment the development of ES2015 targeted applications.
Where do I start?
1. Install the package.
npm install estoolbox --save-dev
yarn add estoolbox --dev
2. Import and use the desired component.
Provides the ability to affix content to the top of the window on scroll.
import {Affix} from "estoolbox";
Affix.top(".top-nav", ".content");
@import "estoolbox/affix";
.my-nav {
@include affix();
height: 300px;
}
.my-content {
@include affix-buffer(300px);
}
This scss example assumes you have added estoolbox to your load path, such that estoolbox maps to associated the node_modules directory.
Provides the ability to perform actions based on changes in the URL hash.
import {Router} from "estoolbox";
Router.when("/about", () => {
});
Router.when("/person/:username", (route) => {
const username = route.variables.username;
});
Created Down Under by Daniel Tedman.