Skip to content

Highlight: use DOM #182

@BenLussier

Description

@BenLussier

When doing something like this:

{#each investorsTable.rows as row: Row}
  					<tr>
						<td><Button class="text-xs" onclick={() => (selectInvestor(row.id, row.registrationName, row.email))}>Select</Button></td>
						<td>{@html row.id}</td>
						<td>{@html row.email}</td>
						<td>{@html row.registrationName}</td>
					</tr>
				{/each}

and tablehandler is set to highlight: true

HTML formatted values are returned instead of original data values.

For example, name<u class="highlight">@gmail</u>.com

A workaround is to use the returned ID of the row and lookup the values. However, this workaround does not work if you are highlighting/searching ID field as it too will return a modified ID value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions