Работа над BookInfoDialog

This commit is contained in:
Book Pauk
2022-11-09 19:25:59 +07:00
parent 7b5061df5f
commit ffc65ab944
4 changed files with 51 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ class ObjectNavigator {
return null;
raw = (Array.isArray(raw) ? raw : [raw]);
const result = [];
for (const r of raw)
result.push(new ObjectNavigator(r));
@@ -80,6 +80,11 @@ class ObjectNavigator {
return this.raw;
}
v(selector = '') {
const res = this.$(selector);
return (res ? res.value : null);
}
text(selector = '') {
const res = this.$(`${selector}/*TEXT`);
return (res ? res.value : null);