Skip to content

add "title" as top level parameter in the table component #1261

@SebastiendOrnano

Description

@SebastiendOrnano

There is a "title" top level parameter in the list and datagrid components but not in the table component.

So, when you want to add a title to a table, you have to add a title or a text component above the table.

(And as list, datagrid and table components are quiet similar, I always create as useless title for my tables)

Describe the solution you'd like

A top level title parameter will allow a more compact table.

I created a custom handlbar by adding :

<div class="card my-2 {{class}}" {{#if overflow}}style="width: fit-content;"{{/if}} {{#if id}}id="{{id}}"{{/if}}>
    {{#if title}}
        <div class="card-header">
            <h2 class="card-title">{{title}}</h2>
        </div>
    {{/if}}
 <div class="card-body p-0" data-pre-init="table"> .......

at the top of the handlebar.

If introduced in the standard component, it will give more options to the users.

example with a datagrid as a dashboard with title and a table withe title:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions