Initial scaffold from yo joplin
This commit is contained in:
commit
de18d28146
37 changed files with 5991 additions and 0 deletions
43
api/JoplinViews.d.ts
vendored
Normal file
43
api/JoplinViews.d.ts
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
import Plugin from '../Plugin';
|
||||
import JoplinViewsDialogs from './JoplinViewsDialogs';
|
||||
import JoplinViewsMenuItems from './JoplinViewsMenuItems';
|
||||
import JoplinViewsMenus from './JoplinViewsMenus';
|
||||
import JoplinViewsToolbarButtons from './JoplinViewsToolbarButtons';
|
||||
import JoplinViewsPanels from './JoplinViewsPanels';
|
||||
import JoplinViewsNoteList from './JoplinViewsNoteList';
|
||||
import JoplinViewsEditors from './JoplinViewsEditor';
|
||||
/**
|
||||
* This namespace provides access to view-related services.
|
||||
*
|
||||
* ## Creating a view
|
||||
*
|
||||
* All view services provide a `create()` method which you would use to create the view object,
|
||||
* whether it's a dialog, a toolbar button or a menu item. In some cases, the `create()` method will
|
||||
* return a [[ViewHandle]], which you would use to act on the view, for example to set certain
|
||||
* properties or call some methods.
|
||||
*
|
||||
* ## The `webviewApi` object
|
||||
*
|
||||
* Within a view, you can use the global object `webviewApi` for various utility functions, such as
|
||||
* sending messages or displaying context menu. Refer to [[WebviewApi]] for the full documentation.
|
||||
*/
|
||||
export default class JoplinViews {
|
||||
private store;
|
||||
private plugin;
|
||||
private panels_;
|
||||
private menuItems_;
|
||||
private menus_;
|
||||
private toolbarButtons_;
|
||||
private dialogs_;
|
||||
private editors_;
|
||||
private noteList_;
|
||||
private implementation_;
|
||||
constructor(implementation: any, plugin: Plugin, store: any);
|
||||
get dialogs(): JoplinViewsDialogs;
|
||||
get panels(): JoplinViewsPanels;
|
||||
get editors(): JoplinViewsEditors;
|
||||
get menuItems(): JoplinViewsMenuItems;
|
||||
get menus(): JoplinViewsMenus;
|
||||
get toolbarButtons(): JoplinViewsToolbarButtons;
|
||||
get noteList(): JoplinViewsNoteList;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue