Skip to content

[Feature Request] ability to modify VDataTable cell's properties without using item slot #8474

@cluidold

Description

@cluidold

Problem to solve

When i create a datatable, i pass a headers and a item array to it.
If i want to add a style to a specific column (eg. color, font-size, alignment, disable sorting...) i have to use the template "...". If i add a style in e extra

the style works, but the elements in the resulting table were nested like following.

< td>
< div style:"color=red">Text< /div>
< /td>

instead of

< td style:"color=red">
Text
< /td>

Proposed solution

Add a property for passing the styles directly via the slot to prevent nesting of resulting elements.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions