1
0
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:
Jeremy Ruston
2012-10-23 17:13:47 +01:00
parent 5ced636abf
commit c087228b33
4 changed files with 58 additions and 2 deletions

View File

@@ -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
*/