2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 17:34:04 +00:00
books/docs/client/desk.md

27 lines
467 B
Markdown
Raw Normal View History

# 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`