Angular 按钮未显示在P表中

Angular 按钮未显示在P表中,angular,typescript,Angular,Typescript,我遇到了一个问题,当我的p表中有一个按钮时,它没有显示出来。它在表外显示(但不下载csv)(我希望它在表外,但我不确定它在不在表内的情况下是否工作)。这是p表的代码 <p-table #DropOff [value]="userData" [(selection)]="selectedUser" selectionMode="multiple" [rowHover]="true" [columns]="cols" [paginator]="true" [rows]="25" [row

我遇到了一个问题,当我的p表中有一个按钮时,它没有显示出来。它在表外显示(但不下载csv)(我希望它在表外,但我不确定它在不在表内的情况下是否工作)。这是p表的代码

   <p-table #DropOff [value]="userData" [(selection)]="selectedUser" selectionMode="multiple" [rowHover]="true" [columns]="cols" [paginator]="true" [rows]="25" [rowsPerPageOptions]="[25,75,200]">

    <button type="button" pButton icon="fa fa-file" iconPos="left" label="Selection Only" (click)="DropOff.exportCSV({selectionOnly:true})" style="float:right"></button>


我漏掉了下面的条目,但表格已经填好了。我已经尝试了我能想到的一切,但出于某些原因,如果它在表外(我想要的地方),它不会下载csv,但如果它在表内,它甚至不会显示尝试下载它的底部

忘记添加标题ng模板,解决了我的问题