mirror of
https://github.com/esiur/iui.git
synced 2026-04-04 23:18:21 +00:00
initial commit
This commit is contained in:
23
src/UI/RoutesList.js
Normal file
23
src/UI/RoutesList.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import IUIElement from "../Core/IUIElement.js";
|
||||
import { IUI } from "../Core/IUI.js";
|
||||
|
||||
export default IUI.module(class RoutesList extends IUIElement {
|
||||
|
||||
constructor(properties) {
|
||||
super(properties, { class: 'routes-list' });
|
||||
}
|
||||
|
||||
create() {
|
||||
if (!window.router)
|
||||
return;
|
||||
|
||||
var table = document.createElement("i-table");
|
||||
|
||||
this.appendChild(table);
|
||||
|
||||
for (var i = 0; i < window.router.routes.length; i++) {
|
||||
// hell
|
||||
table.add
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user