-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sean King
committed
Jun 15, 2017
1 parent
9a18cca
commit 587b55e
Showing
3 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# API Reference | ||
|
||
Simpla-admin attaches itself to `window` as a global singleton, you can access it from `window.SimplaAdmin`. | ||
|
||
## Properties | ||
|
||
Custom properties of `<simpla-admin>`, available on the `window.SimplaAdmin` singleton | ||
|
||
Property | Type | Default | Description | ||
---------------- | --------- | ------- | ----------- | ||
`hashTracking` | `Boolean` | `true` | Whether to bind edit mode to `#edit` in the URL | ||
`loginPrompt` | `Boolean` | `true` | Whether to visually prompt for login if the user is not authenticated | ||
`hotkeys` | `Boolean` | `true` | Whether to enable keyboard shortcuts for common actions | ||
`protectEditing` | `Boolean` | `true` | Whether to enable accidental click protection while editing | ||
|
||
```js | ||
window.SimplaAdmin = window.SimplaAdmin || {}; | ||
SimplaAdmin.hashTracking = false; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters