a jquery plugin that provides url hashTag support for target elements.
$(".ui-tabs .ui-tab-nav a").hashTag
multi: false
toggle: false
enableCtrlKey: false
clearAtLoad: true
event: "click"
hash: []
source: ->
@text()
load: ($target) ->
$target.trigger "click"
$('.ui-tabs .ui-tab-nav a').hashTag({
multi: false,
toggle: false,
enableCtrlKey: false,
clearAtLoad: true,
event: 'click',
hash: [],
source: function() {
return this.text();
},
load: function($target) {
return $target.trigger('click');
}
});
- get the project up and running with bare minimum options.
- create a jquery plugin and auto-inherit target elements
- slugify option => hash source will be auto slugged
- function chaining support for library functions, just like jquery chaining
- prepare an example, preferable showing support for jquery-ui tabs
- Custom slugify function
- Track browser back and forward (hashChange) events
- Provide option for window scope eg. window | top | document etc
- Allow multiple event options and bind them with dynamic elements as well