mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4360] No growing cells for Datatable compoennt (#4561)
This commit is contained in:
committed by
Eugenio Romano
parent
506ca306da
commit
ec9d2785fa
@@ -601,6 +601,23 @@ widths according to your needs:
|
||||
|
||||

|
||||
|
||||
#### No-growing cells
|
||||
|
||||
As mentioned before, in the beginning, all cells have the same width. You can prevent cells from growing by using the `adf-no-grow-cell` class.
|
||||
|
||||
```js
|
||||
{
|
||||
type: 'date',
|
||||
key: 'created',
|
||||
title: 'Created On',
|
||||
cssClass: 'adf-ellipsis-cell adf-no-grow-cell'
|
||||
}
|
||||
```
|
||||
|
||||
Notice that this class is compatible with `adf-ellipsis-cell` and for that reason it has a `min-width` of `100px`. You can override this property in your custom class to better suit your needs.
|
||||
|
||||

|
||||
|
||||
#### Combining classes
|
||||
|
||||
You can combine the CSS classes described above to customize the table as needed:
|
||||
|
Reference in New Issue
Block a user