Use standard itemFormat for BBS list. Add docs
This commit is contained in:
parent
8942eff203
commit
a98940e967
|
@ -315,16 +315,14 @@
|
|||
}
|
||||
|
||||
bbsList: {
|
||||
config: {
|
||||
listFormat: "|00|07{bbsName}"
|
||||
focusListFormat: "|00|19|15{bbsName!styleFirstLower}"
|
||||
}
|
||||
0: {
|
||||
mci: {
|
||||
VM1: {
|
||||
height: 11
|
||||
width: 22
|
||||
focusTextStyle: first upper
|
||||
itemFormat: "|00|07{bbsName}"
|
||||
focusItemFormat: "|00|19|15{bbsName!styleFirstLower}"
|
||||
}
|
||||
TL2: { width: 28 }
|
||||
TL3: { width: 28 }
|
||||
|
|
|
@ -218,12 +218,7 @@ exports.getModule = class BBSListModule extends MenuModule {
|
|||
}
|
||||
|
||||
setEntries(entriesView) {
|
||||
const config = this.menuConfig.config;
|
||||
const listFormat = config.listFormat || '{bbsName}';
|
||||
const focusListFormat = config.focusListFormat || '{bbsName}';
|
||||
|
||||
entriesView.setItems(this.entries.map( e => stringFormat(listFormat, e) ) );
|
||||
entriesView.setFocusItems(this.entries.map( e => stringFormat(focusListFormat, e) ) );
|
||||
return entriesView.setItems(this.entries);
|
||||
}
|
||||
|
||||
displayBBSList(clearScreen, cb) {
|
||||
|
@ -277,6 +272,7 @@ exports.getModule = class BBSListModule extends MenuModule {
|
|||
(err, row) => {
|
||||
if (!err) {
|
||||
self.entries.push({
|
||||
text : row.bbs_name, // standard field
|
||||
id : row.id,
|
||||
bbsName : row.bbs_name,
|
||||
sysOp : row.sysop,
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
- [User List]({{ site.baseurl }}{% link modding/user-list.md %})
|
||||
- [Message Conference List]({{ site.baseurl }}{% link modding/msg-conf-list.md %})
|
||||
- [Message Area List]({{ site.baseurl }}{% link modding/msg-area-list.md %})
|
||||
- [BBS List]({{ site.baseurl }}{% link modding/bbs-list.md %})
|
||||
|
||||
- Administration
|
||||
- [oputil]({{ site.baseurl }}{% link admin/oputil.md %})
|
||||
|
|
Loading…
Reference in New Issue