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.

More customizable trailing row

See original GitHub issue

Currently trailingRowOptions lets you specify the hint text, as well as whether it is sticky or tinted, but it would be great to have some more customizability, such as:

  • a custom icon instead of just the “+”
  • which column to show the hint on
  • hiding the icon on other columns
  • force the append action to focus/edit a particular column

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ivoelbertcommented, Feb 18, 2022

This looks great, thank you! Would it also be possible to add a way to hide the animated plus on the other columns? It seems like one option would be to pass in an icon that is blank, but it would be cleaner to have an option to not draw anything in the first place.

Yeah, for now the “solution” is to use a blank icon. I’ll think about a way to make a less crapy solution. One very easy change that we could do is add an “empty” icon into our default spritemap, so you don’t have to ship your own, at least.

1reaction
ivoelbertcommented, Feb 18, 2022

Hey @pzcfg, I implemented a few changes to help with trailing row customization: https://github.com/glideapps/glide-data-grid/pull/178 and https://github.com/glideapps/glide-data-grid/pull/179

That should cover this issue, except for

force the append action to focus/edit a particular column

which I’ll think about, and perhaps tackle in another issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Placing two trailing icons in ListTile - Stack Overflow
I want to place two icons, side by side on the "trailing" side of a ListTile. I tried adding a Row widget with...
Read more >
Creating Trailing Stop Orders on thinkorswim® Desktop
Prior to a name change in September 2021, Charles Schwab Futures and Forex LLC was known as TD Ameritrade Futures & Forex LLC....
Read more >
grid-row - CSS: Cascading Style Sheets - MDN Web Docs
The grid-row CSS shorthand property specifies a grid item's size and location within a grid row by contributing a line, a span, ...
Read more >
ListTile class - material library - Flutter - Dart API docs
A single fixed-height row that typically contains some text as well as a leading or trailing icon.
Read more >
How to add custom swipe action buttons to a List row
SwiftUI's swipeActions() modifier lets you add one or more swipe action buttons to your list rows, optionally controlling which side they ...
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