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.

Is there a way to "expand" a row?

See original GitHub issue

I’m looking to ng2-smart-table to migrate my angular1 components based on ng-table (https://github.com/esvit/ng-table) to Angular (>=2).

One of the thing I use ng-table for the most is like this:

<table ng-table ....>
  <tr ng-repeat-start="elem in $data">
    <td data-title="'Actions'"><button ng-click="$ctrl.toggleDetails(elem)">Details</button></td>
    <td data-title="'Field 1'">{{elem.field1}}</td>
    <td data-title="'Field 2'">{{elem.field2}}</td>
    <td data-title="'Field 3'">{{elem.field3}}</td>
    <td data-title="'Field 4'">{{elem.field4}}</td>
  </tr>
  <tr ng-repeat-end ng-if="elem.showDetails">
    <td colspan="5">DETAILS for elem</td>
  </tr>
</table>

Is there a way to achieve something similar with ng2-smart-table?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:6
  • Comments:20

github_iconTop GitHub Comments

6reactions
nicomanacommented, Oct 3, 2017

@tenebroso Hi Mate, could you plz add like a working example?. Sry I couldn’t make it work. Thx a lot!

1reaction
me-hungrycommented, Jan 31, 2020

@me-hungry Sorry mate, I didn’t continue with my attempt. Good luck

@Et3rnal No problem, I added remove component in OnDestroy. Also need to remove empty rows(parent of component). Anyway thanks for your method. Coz no other options 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Expand All Rows in Excel 2013 - Solve Your Tech
How to Expand Rows in Excel. Open your file. Select all the rows. Click Home. Click Format. Choose AutoFit Row Height.
Read more >
How to group rows in Excel to collapse and expand them
Select any cell in one of the rows you want to group. Go to the Data tab > Outline group, click the arrow...
Read more >
Change the column width and row height - Microsoft Support
Select the row or rows that you want to change. · On the Home tab, in the Cells group, click Format. On the...
Read more >
How to expand all collapsed columns or rows in Excel?
Select the whole sheet, click Data > Ungroup > Clear Outline to display all collapse columns and rows which are grounded by the...
Read more >
Quickly Resize Multiple Columns or Rows at Once in Excel
Doing this with rows works the exact same way except you select the rows and double-click in the header in between them. Resize...
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