tw5-typed / core / ITiddlyWiki
Interface: ITiddlyWiki
core.ITiddlyWiki
Table of contents
Properties
- Story
- Syncer
- Tiddler
- Wiki
- boot
- browser
- config
- crypto
- dragInProgress
- fakeDocument
- hooks
- keyboardManager
- language
- locationHash
- macros
- modal
- modules
- node
- nodeWebKit
- notifier
- packageInfo
- passwordPrompt
- platform
- preloadTiddlers
- rootWidget
- safeMode
- syncadaptor
- syncer
- utils
- version
- wiki
Methods
- addUnloadTask
- findLibraryItem
- getLibraryItemSearchPaths
- loadMetadataForFile
- loadPlugin
- loadPluginFolder
- loadPlugins
- loadTiddlersBrowser
- loadTiddlersFromFile
- loadTiddlersFromPath
- loadTiddlersFromSpecification
- loadTiddlersNode
- loadWikiTiddlers
- preloadTiddler
- preloadTiddlerArray
Properties
Story
• Story: typeof Story
Defined in
Syncer
• Syncer: () => Syncer
Type declaration
• new Syncer(): Syncer
Returns
Defined in
Tiddler
• Tiddler: typeof Tiddler
Defined in
Wiki
• Wiki: typeof Wiki
Defined in
boot
• boot: IBoot
Defined in
browser
• browser: Object
Type declaration
Name | Type | Description |
---|---|---|
is? | { android? : boolean ; bada? : boolean ; blackberry? : boolean ; chrome? : boolean ; firefox? : boolean ; firefoxos? : boolean ; gecko? : boolean ; ios? : boolean ; ipad? : boolean ; iphone? : boolean ; mobile? : boolean ; name? : boolean ; opera? : boolean ; phantomjs? : boolean ; safari? : boolean ; sailfish? : boolean ; seamonkey? : boolean ; silk? : boolean ; tizen? : boolean ; version? : boolean ; webkit? : boolean ; webos? : boolean ; windowsphone? : boolean } | - |
is.android? | boolean | - |
is.bada? | boolean | - |
is.blackberry? | boolean | - |
is.chrome? | boolean | - |
is.firefox? | boolean | - |
is.firefoxos? | boolean | - |
is.gecko? | boolean | - |
is.ios? | boolean | - |
is.ipad? | boolean | - |
is.iphone? | boolean | - |
is.mobile? | boolean | - |
is.name? | boolean | - |
is.opera? | boolean | - |
is.phantomjs? | boolean | - |
is.safari? | boolean | - |
is.sailfish? | boolean | - |
is.seamonkey? | boolean | - |
is.silk? | boolean | - |
is.tizen? | boolean | - |
is.version? | boolean | - |
is.webkit? | boolean | - |
is.webos? | boolean | - |
is.windowsphone? | boolean | - |
isFirefox | boolean | Deprecated Install $:/plugins/tiddlywiki/browser-sniff to use browser.is |
isIE | boolean | Deprecated Install $:/plugins/tiddlywiki/browser-sniff to use browser.is |
Defined in
config
• config: IConfig
Defined in
crypto
• crypto: Crypto
Defined in
dragInProgress
• Optional
dragInProgress: boolean
Check for this window being the source of the drag. If true, some drop target widget will stop responding to the drop event, so you can handle drop event in your own widget.
Used by DropZoneWidget.prototype.handleDropEvent
Defined in
fakeDocument
• fakeDocument: IFakeDocument
Defined in
hooks
• hooks: IHooks
Global Hooks mechanism which allows plugins to modify default functionality
Defined in
keyboardManager
• keyboardManager: KeyboardManager
Defined in
language
• language: ILanguage
Defined in
locationHash
• locationHash: string
Defined in
macros
• macros: Record
<string
, IMacro
>
Defined in
modal
• modal: Modal
Defined in
modules
• modules: IModules
Defined in
node
• node: Record
<string
, any
>
NodeJS features, if tw isn't running on a NodeJS environment, the value will be null
Defined in
nodeWebKit
• nodeWebKit: Record
<string
, any
>
Broswer features, if tw isn't running on a browser environment, the value will be null
Defined in
notifier
• notifier: Notifier
Defined in
packageInfo
• packageInfo: Record
<string
, unknown
>
Defined in
passwordPrompt
• passwordPrompt: PasswordPrompt
Defined in
platform
• platform: Object
Type declaration
Name | Type |
---|---|
isLinux | boolean |
isMac | boolean |
isWindows | boolean |
Defined in
preloadTiddlers
• preloadTiddlers: Record
<string
, Record
<string
, unknown
>>
External JavaScript can populate this array before calling boot.js in order to preload tiddlers
Defined in
rootWidget
• rootWidget: widget
Defined in
safeMode
• safeMode: boolean
Defined in
syncadaptor
• Optional
syncadaptor: SyncAdaptor
Defined in
syncer
• Optional
syncer: Syncer
Presents when we have $tw.syncadaptor
Defined in
utils
• utils: IUtils
Defined in
version
• version: string
Defined in
wiki
• wiki: Wiki
Defined in
Methods
addUnloadTask
▸ addUnloadTask(task
): any
Parameters
Name | Type |
---|---|
task | any |
Returns
any
Defined in
findLibraryItem
▸ findLibraryItem(name
, paths
): string
Parameters
Name | Type |
---|---|
name | string |
paths | string [] |
Returns
string
Defined in
getLibraryItemSearchPaths
▸ getLibraryItemSearchPaths(libraryPath
, environmentVariable?
): string
Parameters
Name | Type |
---|---|
libraryPath | string |
environmentVariable? | string |
Returns
string
Defined in
loadMetadataForFile
▸ loadMetadataForFile(filepath
): ITiddlerFields
Parameters
Name | Type |
---|---|
filepath | string |
Returns
Defined in
loadPlugin
▸ loadPlugin(name
, paths
): void
Parameters
Name | Type |
---|---|
name | string |
paths | string [] |
Returns
void
Defined in
loadPluginFolder
▸ loadPluginFolder(filepath
, excludeRegExp?
): IPluginInfo
Parameters
Name | Type |
---|---|
filepath | string |
excludeRegExp? | RegExp |
Returns
Defined in
loadPlugins
▸ loadPlugins(plugins
, libraryPath
, environmentVariable?
): void
Parameters
Name | Type |
---|---|
plugins | string [] |
libraryPath | string |
environmentVariable? | string |
Returns
void
Defined in
loadTiddlersBrowser
▸ loadTiddlersBrowser(): void
Returns
void
Defined in
loadTiddlersFromFile
▸ loadTiddlersFromFile(filepath
, defaultFields?
): ITiddlersInFile
Parameters
Name | Type |
---|---|
filepath | string |
defaultFields? | Record <string , unknown > |
Returns
ITiddlersInFile
Defined in
loadTiddlersFromPath
▸ loadTiddlersFromPath(filepath
, excludeRegExp?
): ITiddlerFields
[]
Parameters
Name | Type |
---|---|
filepath | string |
excludeRegExp? | RegExp |
Returns
Defined in
loadTiddlersFromSpecification
▸ loadTiddlersFromSpecification(filepath
, excludeRegExp?
): ITiddlerFields
[]
Parameters
Name | Type |
---|---|
filepath | string |
excludeRegExp? | RegExp |
Returns
Defined in
loadTiddlersNode
▸ loadTiddlersNode(): void
Returns
void
Defined in
loadWikiTiddlers
▸ loadWikiTiddlers(wikiPath
, options?
): IWikiInfo
Parameters
Name | Type |
---|---|
wikiPath | string |
options? | Object |
options.parentPaths? | string |
options.readOnly? | boolean |
Returns
Defined in
preloadTiddler
▸ preloadTiddler(fields
): void
Convenience function for pushing a tiddler onto the preloading array.
Parameters
Name | Type | Description |
---|---|---|
fields | Record <string , unknown > | The fields of the tiddler to push. |
Returns
void
Description
方便地将一个 tiddler 推入预加载数组中。
Defined in
preloadTiddlerArray
▸ preloadTiddlerArray(fieldsArray
): void
Convenience function for pushing an array of tiddlers onto the preloading array.
Parameters
Name | Type | Description |
---|---|---|
fieldsArray | Record <string , unknown >[] | The array of tiddlers to push. |
Returns
void
Description
方便地将若干 tiddler 数组推入预加载数组中。