mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-07 02:53:00 +00:00
Starting to introduce list views
These are custom modules for visualising list manipulations and navigations
This commit is contained in:
@@ -533,7 +533,7 @@ exports.initEditors = function(moduleType) {
|
||||
};
|
||||
|
||||
/*
|
||||
Install field viewer modules for the edit macro
|
||||
Install field viewer modules for the view macro
|
||||
*/
|
||||
exports.initFieldViewers = function(moduleType) {
|
||||
moduleType = moduleType || "fieldviewer";
|
||||
@@ -544,6 +544,18 @@ exports.initFieldViewers = function(moduleType) {
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Install list viewer modules for the list macro
|
||||
*/
|
||||
exports.initListViews = function(moduleType) {
|
||||
moduleType = moduleType || "listview";
|
||||
var listMacro = this.macros.list;
|
||||
if(listMacro) {
|
||||
listMacro.listviews = {};
|
||||
$tw.modules.applyMethods(moduleType,listMacro.listviews);
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Install view modules for the story macro
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user