I have a table with 5 columns. On small screens I need to hide the first and last column. That works well. But the expand icon (and footable-toggle span) is placed in the first column. And that column is collapsed. I tried re-arranging columns. If I keep the first collumn in sight, the expand icon is there. Changing the Expandable column setting doesn't do anything. Please help?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

HansKuiters’s picture

Issue summary: View changes
czigor’s picture

Same issue here: the expandable icon is always in the first column, no matter what the setting is.

geek-merlin’s picture

analysis:
* current module marks toggler column by adding data-class="expand" to th
* current footable library (2.0.1.5) expects data-toggler="true" to th

note: data-class attribute is only needed for this which simplifies the patch.

geek-merlin’s picture

Status: Active » Needs review
FileSize
1.88 KB

Use the source, luke: Contrary to docs it's not data-toggle*r*, but data-toggle.

Patch flying in that worksforme.

Scott Robertson’s picture

Status: Needs review » Reviewed & tested by the community

Can confirm that the patch in #4 works for me.

jonraedeke’s picture

#4 Works for me too. Thanks!

  • Arkener committed cf3865b on 7.x-1.x authored by axel.rutz
    Issue #2387123 by axel.rutz: Toggle icon only in first td of every row...
Arkener’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks everyone for the patch and the tests.

  • Arkener committed cf3865b on 7.x-2.x authored by axel.rutz
    Issue #2387123 by axel.rutz: Toggle icon only in first td of every row...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.