-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
colspan/rowspan in responsive mode #17
Comments
Yeah, I'm afraid repeating the row is the only reasonable alternative. To support it I would say replicate manually the |
I agree with you, I haven't had no other idea. But I think it will not be so easy to implement, there could be a lot of |
I think even if support for this is implemented on the directive, it would be hard to benefit from it because it would require to structure data around this presentation concern. Possible to be done but I'm not sure if people would want to do this. I'll leave it open if anyone would like to step in to implement. |
The aim is not to structure data in order to have a "right" responsive presentation, but exactly the opposite. What you say could happen if I should add a |
In a table with a static set of rows, we would end up having a structure like this: <tr>
<th>Month</th>
<th>Savings</th>
<th>Savings for holiday!</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
<td rowspan="2">$50</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
<td responsive-show>$50</td> <!-- INSERT HERE -->
</tr> Notice an artificial This scenario is at least possible to enable. Then there's the dynamic table: <tr>
<th>Month</th>
<th>Savings</th>
<th>Savings for holiday!</th>
</tr>
<tr ng-repeat="item in list">
<td>{{item.month}}</td>
<td>{{item.savings}}</td>
<td rowspan="???" responsive-show="???">{{item.holiday}}</td>
</tr> This is the scenario I was refering to the other day. And of course blends of these two structures. I guess we require more insight into this. How would people consume, etc. I don't like having a half baked concept, that is, fail to cover other, perhaps common use cases. Supporting all scenarios would require much more effort to design and implement. |
Hi, |
This new |
Have a look at this code, in responsive mode (taken from w3schools, example on rowspan):
What do you think about it? Should the third
th
be shown also in the second row? Maybe yes, but I'm not so sure.The text was updated successfully, but these errors were encountered: