You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
498 B
28 lines
498 B
export default class NoTreeData {
|
|
constructor(data) {
|
|
this.data = data;
|
|
this.specChain = []
|
|
}
|
|
|
|
getElementById(id) {
|
|
for (let i = 0; i < this.data.length; i++) {
|
|
if (this.data[i].id == id) return this.data[i]
|
|
}
|
|
}
|
|
|
|
getSpecChain(id, incl) {
|
|
return this.specChain
|
|
}
|
|
|
|
isChild(el_id, parent_id) {
|
|
return false
|
|
}
|
|
|
|
hasChildren() {
|
|
return false
|
|
}
|
|
|
|
dataToList() {
|
|
return this.data
|
|
}
|
|
} |