mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.198.1
This commit is contained in:
28
js/names.js
Normal file
28
js/names.js
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
class NamesPage extends TableListPage {
|
||||
constructor () {
|
||||
super({
|
||||
dataSource: "data/names.json",
|
||||
|
||||
dataProps: ["name"],
|
||||
});
|
||||
}
|
||||
|
||||
static _COL_NAME_1 = "Name";
|
||||
|
||||
_getHash (ent) {
|
||||
return UrlUtil.encodeForHash([ent.name, ent.source, ent.option]);
|
||||
}
|
||||
|
||||
_getHeaderId (ent) {
|
||||
return UrlUtil.encodeForHash([ent.name, ent.source]);
|
||||
}
|
||||
|
||||
_getDisplayName (ent) {
|
||||
return Renderer.table.getConvertedNameTableName(ent, ent);
|
||||
}
|
||||
}
|
||||
|
||||
const namesPage = new NamesPage();
|
||||
window.addEventListener("load", () => namesPage.pOnLoad());
|
||||
Reference in New Issue
Block a user