Skip to content

Component per row with inline-template #7537

@dan-iway

Description

@dan-iway

What problem does this feature solve?

At the moment it seems to be impossible to create one component per row in a table using inline templates.

If have collected my unsuccessful attempts in this fiddle: https://jsfiddle.net/hfu0zccs/

This is the link where it was suggested by LinusBorg to open an issue but apparently that never happended?

What does the proposed API look like?

Considering the limitations involved with restrictions of allowed elements in tables this would seem to be the most likely to be supported? Although it is pretty ugly form my understanding this would be valid html and honor the 1 child only requirement of vue.

   <table>
      <tr is="table-row" inline-template>
        <template>
          <tr>
            <td>{{ content }}</td>
            <td>{{ content }}</td>
          </tr>
        </template>
      </tr>
    </table>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions