mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4308] DatatableComponent - add Json cell type (#4518)
* [ADF-4308] DatatableComponent - add Json cell type * [ADF-4308] - PR changes * [ADF-4306] - remove unnecesary code and properties * [ADF-4308] - PR changes
This commit is contained in:
committed by
Eugenio Romano
parent
9217ebd999
commit
506ca306da
54
docs/core/components/json-cell.component.md
Normal file
54
docs/core/components/json-cell.component.md
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
Title: JsonCell component
|
||||
Added: v2.0.0
|
||||
Status: Active
|
||||
---
|
||||
|
||||
# [JsonCellComponent](../../../lib/core/datatable/components/datatable/json-cell.component.ts "Defined in empty-list.component.ts")
|
||||
|
||||
Show Json formated value inside datatable component.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-datatable ...>
|
||||
<data-columns>
|
||||
<data-column key="entry.json" type="json" title="Json Column"></data-column>
|
||||
</data-columns>
|
||||
</adf-datatable>
|
||||
```
|
||||
|
||||
You can specify the cell inside configuration file
|
||||
|
||||
```javascript
|
||||
"adf-cloud-process-list": {
|
||||
"presets": {
|
||||
"default": [
|
||||
{
|
||||
"key": "entry.json",
|
||||
"type": "json",
|
||||
"title": "Json cell value"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
```
|
||||
|
||||
## Class members
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Default value | Description |
|
||||
| ---- | ---- | ------------- | ----------- |
|
||||
| data | [`DataTableAdapter`](../../../lib/core/datatable/data/datatable-adapter.ts) | `null` | Data adapter instance. |
|
||||
| column | [`DataColumn`](../../../lib/core/datatable/data/data-column.model.ts) | `null` | Data that defines the column |
|
||||
| row | [`DataRow`](../../../lib/core/datatable/data/data-row.model.ts) | | Data that defines the row |
|
||||
|
||||
|
||||
## Details
|
||||
|
||||
This component provides a custom display to show a [Datatable component](datatable.component.md) cell
|
||||
|
||||
## See also
|
||||
|
||||
- [Datatable component](datatable.component.md)
|
Reference in New Issue
Block a user