|
|
@ -5,6 +5,7 @@ import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
|
|
|
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
|
|
|
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
|
|
|
import { ApiService } from './service/api.service';
|
|
|
|
import { ApiService } from './service/api.service';
|
|
|
|
import {Router} from '@angular/router';
|
|
|
|
import {Router} from '@angular/router';
|
|
|
|
|
|
|
|
import { TREE_ACTIONS } from 'angular-tree-component';
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
@Component({
|
|
|
|
selector: 'app-root',
|
|
|
|
selector: 'app-root',
|
|
|
@ -21,6 +22,10 @@ export class AppComponent implements OnInit {
|
|
|
|
console.log({tree, node, $event});
|
|
|
|
console.log({tree, node, $event});
|
|
|
|
const id = node.data.id;
|
|
|
|
const id = node.data.id;
|
|
|
|
this.router.navigate(['/editor', {id}]);
|
|
|
|
this.router.navigate(['/editor', {id}]);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
click: (tree, node, $event) => {
|
|
|
|
|
|
|
|
console.log('click', {tree, node, $event});
|
|
|
|
|
|
|
|
TREE_ACTIONS.FOCUS(tree, node, $event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|