mdgriffith / design-discussion-elm-ui-2

A repo for discussing changes to Elm UI 2
17 stars 0 forks source link

Attributes for table row #6

Open jouderianjr opened 4 years ago

jouderianjr commented 4 years ago

As mentioned in https://github.com/mdgriffith/elm-ui/issues/88, I think that make sense to allow the table row attributes, I think it's a very common use case.

Is that in the plan for the elm UI 2.0?

mdgriffith commented 4 years ago

Hey!

I think this makes a lot of sense so it'll likely be in 2.0! I haven't taken a look at table in a while, but it's definitely on my list of things to revisit.

tankorsmash commented 2 years ago

I have recently switched from manually creating a table with rows and cols, but couldn't get the alignment to work, and having a Element.Table solved that, but then I lost the ability to have mouseenter/leave event handlers on the entire row.

Looking forward to this feature!

I know it's not done but it doesn't seem like you're able to do anything with the table rows beyond clicking them via onRowClick, based off the API in the 2.0.