Skip to content

How would one go about scrollable table? #757

Answered by ArthurSonzogni
bqle asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @bqle

Here's a breakdown of the necessary steps, based on your example:

Focusable:

The inner components (the ones you want to scroll through) must declare themselves as Focusable. This lets the parent container know that these components can receive focus.
In your example, this is achieved with:

bool Focusable() const final { return true; }

Visual Feedback:

When an inner component has focus (is currently Active()/Selected()), it needs to provide visual feedback.
Use decorators like focus or select in the component's Render() method to give the frame the location of the element to focus.
You can also use inverted to provide visual feedback.

Event Handling:

The inner components should…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pat-RR-ick
Comment options

Answer selected by ArthurSonzogni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants