2
0
mirror of https://github.com/frappe/books.git synced 2024-12-26 20:30:25 +00:00
books/docs/client/desk.md
2018-01-15 17:25:31 +05:30

27 lines
467 B
Markdown

# Desk
Desk includes the default routing and menu system for the single page application
## Menus
You can add a new menu to the desk via
```js
frappe.desk.add_sidebar_item('New ToDo', '#new/todo');
```
## Views
Default route handling for various views
### List Documents
All list views are rendered at `/list/:doctype`
### Edit Documents
Documents can be edited via `/edit/:doctype/:name`
### New Documents
New Documents can be created via `/new/:doctype`