mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#82 css improvements
This commit is contained in:
@@ -17,6 +17,9 @@
|
|||||||
|
|
||||||
:host .column-header {
|
:host .column-header {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host .non-selectable {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
||||||
-moz-user-select: none; /* Firefox */
|
-moz-user-select: none; /* Firefox */
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
<input type="checkbox" id="table-header" class="mdl-checkbox__input" />
|
<input type="checkbox" id="table-header" class="mdl-checkbox__input" />
|
||||||
</label>
|
</label>
|
||||||
</th>
|
</th>
|
||||||
<th class="mdl-data-table__cell--non-numeric {{col.cssClass}}"
|
<th class="mdl-data-table__cell--non-numeric non-selectable {{col.cssClass}}"
|
||||||
*ngFor="#col of data.getColumns()"
|
*ngFor="#col of data.getColumns()"
|
||||||
[class.column-header]="col.title"
|
[class.column-header]="col.title"
|
||||||
[class.mdl-data-table__header--sorted-ascending]="isColumnSorted(col, 'asc')"
|
[class.mdl-data-table__header--sorted-ascending]="isColumnSorted(col, 'asc')"
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
<td *ngFor="#col of data.getColumns()" [ngSwitch]="col.type"
|
<td *ngFor="#col of data.getColumns()" [ngSwitch]="col.type"
|
||||||
class="mdl-data-table__cell--non-numeric data-cell {{col.cssClass}}"
|
class="mdl-data-table__cell--non-numeric data-cell non-selectable {{col.cssClass}}"
|
||||||
(click)="onRowClick(row, $event)" (dblclick)="onRowDblClick(row, $event)">
|
(click)="onRowClick(row, $event)" (dblclick)="onRowDblClick(row, $event)">
|
||||||
<div *ngSwitchWhen="'image'">
|
<div *ngSwitchWhen="'image'">
|
||||||
<i *ngIf="isIconValue(row, col)" class="material-icons icon-cell">{{asIconValue(row, col)}}</i>
|
<i *ngIf="isIconValue(row, col)" class="material-icons icon-cell">{{asIconValue(row, col)}}</i>
|
||||||
|
Reference in New Issue
Block a user