We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've added a skip-to-href into my copy of pagerjs - it implements a redirect. I thought I'd mention it in case you wanted to include it:
//added by gb ko.virtualElements.allowedBindings['skip-to-href'] = true ko.bindingHandlers['skip-to-href'] = { init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) { var Cls = pager.useHTML5history ? pager.Href5 : pager.Href; var href = new Cls(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext); href.init(); window.location = href.path(); }, };
an example of usage from my app which redirects to the first item from a list if there is one:
<!-- ko if:value().length--> <!-- ko 'skip-to-href':'../device/'+ value()[0].Id() +'/parameters/suiteTasks' --> <!--/ko--> <!-- /ko -->
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've added a skip-to-href into my copy of pagerjs - it implements a redirect. I thought I'd mention it in case you wanted to include it:
an example of usage from my app which redirects to the first item from a list if there is one:
The text was updated successfully, but these errors were encountered: