Skip to content
Snippets Groups Projects
Commit e52c555b authored by Angapay Divin's avatar Angapay Divin
Browse files

improve actions on selected rows

parent c83737be
No related branches found
No related tags found
2 merge requests!72Develop,!35Resolve "Amélioration des actions sur les lignes sélectionnées"
This commit is part of merge request !35. Comments created here will be created in the context of that merge request.
{
"makefile.extensionOutputFolder": "./.vscode"
}
\ No newline at end of file
UID := 1000
GID := 1000
UID := 9898
GID := 4000
list:
@echo ""
......
<div *ngIf="dataset.datatable_selectable_rows" class="btn-group mb-2" dropdown [isDisabled]="selectedData.length < 1">
<button id="button-basic" dropdownToggle type="button" class="btn btn-primary dropdown-toggle" aria-controls="dropdown-basic">
Actions <span class="caret"></span>
<button id="button-basic" dropdownToggle type="button" class="btn btn-primary dropdown-toggle"
aria-controls="dropdown-basic">
<span *ngIf="!selectedData.length">Actions on selected rows (select rows first)</span>
<span *ngIf="selectedData.length">Actions on {{selectedData.length}} rows </span>
<span class="caret"></span>
</button>
<ul id="dropdown-basic" *dropdownMenu class="dropdown-menu" role="menu" aria-labelledby="button-basic">
<li *ngIf="dataset.download_json" role="menuitem">
<a class="dropdown-item" [href]="getDatatableUrl('json')" (click)="download($event, getDatatableUrl('json'), 'json')">
<a class="dropdown-item" [href]="getDatatableUrl('json')"
(click)="download($event, getDatatableUrl('json'), 'json')">
<span class="fas fa-file"></span> Download JSON
</a>
</li>
<li *ngIf="dataset.download_csv" role="menuitem">
<a class="dropdown-item" [href]="getDatatableUrl('csv')" (click)="download($event, getDatatableUrl('csv'), 'csv')">
<a class="dropdown-item" [href]="getDatatableUrl('csv')"
(click)="download($event, getDatatableUrl('csv'), 'csv')">
<span class="fas fa-file-csv"></span> Download CSV
</a>
</li>
<li *ngIf="dataset.download_ascii" role="menuitem">
<a class="dropdown-item" [href]="getDatatableUrl('ascii')" (click)="download($event, getDatatableUrl('ascii'), 'ascii')">
<a class="dropdown-item" [href]="getDatatableUrl('ascii')"
(click)="download($event, getDatatableUrl('ascii'), 'ascii')">
<span class="fas fa-file"></span> Download ASCII
</a>
</li>
<li *ngIf="dataset.download_vo" role="menuitem">
<a class="dropdown-item" [href]="getDatatableUrl('votable')" (click)="download($event, getDatatableUrl('votable'), 'votable')">
<a class="dropdown-item" [href]="getDatatableUrl('votable')"
(click)="download($event, getDatatableUrl('votable'), 'votable')">
<span class="fas fa-file"></span> VOtable
</a>
</li>
......@@ -34,4 +41,4 @@
</a>
</li>
</ul>
</div>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment