question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Atomic template, how to pass inputs?

See original GitHub issue

Hey guys, I’m using Data Table (Atomic) Components

as shown here: https://teradata.github.io/covalent/#/components/data-table

I currently have a table that looks something like the following:

<table td-data-table>
  <th td-data-table-column>
    <md-icon>comment</md-icon>
    <span>Comments</span>
  </th>
  <th td-data-table-column
      *ngFor="let column of columns"
      [numeric]="column.numeric">
    {{column.label}}
  </th>
  <tr td-data-table-row *ngFor="let row of basicData">
    <td td-data-table-cell (click)="openPrompt(row, 'comments')">
      <button md-button [class.mat-accent]="!row['comments']">{{row['comments'] || 'Add Comment'}}</button>
    </td>
    <td td-data-table-cell *ngFor="let column of columns" [numeric]="column.numeric">
      {{column.format ? column.format(row[column.name]) : row[column.name]}}
    </td>
  </tr>
</table>

How can I pass inputs into td-data-table for example, to enable rows being clickable or sortable ?

Thanks for your time and for the great set of components 👍

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jotatoledocommented, Jun 8, 2017

You mind sharing something about your solution for future generations? 😜

1reaction
RicardoVarandacommented, Jun 8, 2017

I managed to get this working in the end and quite well, thanks once again for the great component set 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Provide Parameters to CfnInclude with CDK
When using CfnInclude, it's possible to provide parameters to a Cloudformation YAML file. This guide walks through how to do that.
Read more >
How to pass parameters to template event in meteor?
Template.Header.events({ 'click .testClass':function(event, template){ console.
Read more >
std::atomic - cppreference.com
Input /output library ... (C++11). Free functions for atomic operations ... The primary std::atomic template may be instantiated with any ...
Read more >
Writing GN Templates
Things to Consider When Writing Templates. Inputs and Depfiles. List all files read (or executed) by an action as inputs . It is...
Read more >
How to structure Storyblok spaces using Atomic Design
1. Define a folder to group our molecules. To do that, go to the Components section, which you can find in the left...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found