【发布时间】:2021-05-16 07:23:08
【问题描述】:
我正在为我的学校项目构建一个EmailClient 应用程序。将Bootstrap 用于用户界面。
我有三个组件(实际上,如果计算包含这三个组件的父组件,我有四个组件),如下所示:
<app-navbar></app-navbar>
<div class="container-fluid">
<div class="row">
<div c class="col-lg-3 ">
<app-folder-tree></app-folder-tree>
</div>
<div class="col-lg-9">
<app-message></app-message>
</div>
</div>
</div>
我的目标是能够通过双击任何文件夹来打开用于编辑任何文件夹名称的简单模式。从 <app-folder-tree> 组件,我使用 Telerik 的 TreeView UI 组件。以下是<app-folder-tree> 组件的外观:
<div class="test">
<kendo-treeview
id="idt"
[nodes]="folders"
textField="folderName"
[hasChildren]="hasChildren"
[children]="fetchChildren"
(nodeDblClick)="doubleClick($event)"
kendoTreeViewExpandable
(selectionChange)="handleSelection($event)"
kendoTreeViewSelectable
[selectBy]="'folderName'"
>
</kendo-treeview>
<div *ngIf="showModalBox">
<div class="container">
<!-- Small modal -->
<div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
Content
</div>
</div>
</div>
</div>
</div>
</div>
这是.ts文件中的一个函数:
doubleClick($event){
console.log("aaafff")
this.showModalBox = true;
}
我在这里缺少什么?
【问题讨论】:
标签: angular twitter-bootstrap modal-dialog