solineo.blogg.se

Lighttable highlight line
Lighttable highlight line












lighttable highlight line
  1. #LIGHTTABLE HIGHLIGHT LINE FOR MAC#
  2. #LIGHTTABLE HIGHLIGHT LINE FULL#

I agree that the checkboxes feel a little retro. For example, a check mark could be used to show if the row is selected and a row highlight could be used to show the currently focused row. In multiple selection, the visual clue for the currently focused row should be different from the selection status visual clue.Single selection and Multiple selection are mutually exclusive.Click: Toggle whether the current row (under the mouse cursor) is selected.For example, the Up key would bring into focus and select the next row up. Navigation auto selects the focused row and unselects all other rows.Shift-Click: Selects all rows from the row that was last selected to the current row (under click).If the row is already selected, unselect it. Click: Select clicked row if the row is unselected.Would be nice if spacebar also navigated down one row (often you are selecting multiple rows together). If the row is already selected, remove it from the selected. Spacebar: Add focused row to the selected list of rows if not selected.In my opinion, those should go to the next or previous component/control. Tab and Shift-Tab should NOT be used inside the table.Ctrl-Left: Pan left if scrolling enabled (future when horizontal scroll is implemented).Ctrl-Right: Pan right if scrolling enabled (future when horizontal scroll is implemented).This should be optional because sometimes going to the end of a dataset directly cannot be easily/quickly done.

#LIGHTTABLE HIGHLIGHT LINE FULL#

  • End: Set selection focus to bottom most row (of full dataset).
  • Home: Set selection focus to top most row (of full dataset).
  • If scrolling is not enabled: Do nothing special (let the browser do it’s thing).
  • Page-up: Opposite of page-down when scrolling is enabled.
  • If at bottom visible row, scroll up one scroll viewport.
  • Page-down: If scrolling enabled: If not at bottom visible row, move selection focus to bottom row.
  • If scrolling enabled and at bottom row, scroll.
  • Down: Move selection focus down one row.
  • If scrolling enabled and at top row, scroll. Navigation (changes the focused row with a visual clue often highlighting): I think there should be a default mapping of keys to events but the default mapping should be configurable.

    #LIGHTTABLE HIGHLIGHT LINE FOR MAC#

    In my experience, the following work bests (with slight changes for Mac like Cmd-A selects all in multiple selection). Would PRs implementing something like this be accepted? I don’t really have a ton of time to focus on this right now but perhaps with a little guidance on implementation strategy me or someone else could take a stab at this. I’ve built something like this before with angular and it wasn’t too bad to implement (but I wasn’t working with a general purpose table widget so I could use more hacks and dirty tricks that would be acceptable for a large project).

  • highlighted (user uses up or down to move between rows without focusing the row) with a mouse, this is achieve via hovering.
  • selected (user hit enter while row was focused with a mouse, this is achieved a click.
  • focused (user used tab to focus the row) with a mouse, this is achieve via a click.
  • While a row is selected, the up and down arrows could move from one row to another (without activating them) – this is where the shift modifier would be useful. If shift modifier is used, it would select a range of rows. If the ctrl / cmd modifier is used when selecting, it would add/remove the row to the existing selection. While focused, an enter (or space) press would select that row. One idea is to allow tab to focus on each row.














    Lighttable highlight line