route

Example

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

router.route("/items/:category/:id", function(category, id, params) {
    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
Not finding the help you need?