route

Example

<script>
var router = new kendo.Router();

router.route("/items/:category/:id", function(category, id, params) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(category, "item with id", id, "was requested by", params.user);
});

$(function() {
    router.start();
    // ...
    router.navigate("/items/books/59?user=John");
});
</script>

Parameters

route String

The route definition.

callback Function

The callback to be executed when the route is matched.

In this article