Web Component: j-HashChange
j-HashChange
The component captures all changes for #hashtag in the URL address. When change, it emits event hash. The component reacts to the real changes.
- jComponent
v19|v20 - singleton
Configuration:
delay{Number}a delay for emittinghashevent (default:0)- NEW:
middleware{String}a middleware (separated by the comma) for initial emit of thehashevent
How to capture hash change?
// Global:
ON('hash', function(hash) {
// @hash {String} - it can be "empty"
});
// Or in the Plugin declaration:
exports.on('hash', function(hash) {
});
Author
- Peter Širka petersirka@gmail.com
- License
Created
18. september 2024
Updated
05. october 2024
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com

