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.

Highlight AnalyticalTable

See original GitHub issue

Hello, I have a table with a button in one of the cells. When clicking the button, it open a window and I also want the relevant row in the table to be highlighted.

Appreciate ideas 😃 Thanks!

        <AnalyticalTable
            header={
                <FlexBox
                    className="m-2.5 w-full"
                    justifyContent="SpaceBetween"
                >
                    <Title
                        level="H2"
                        style={{ paddingLeft: '5px' }}
                        className="font-sapFontFamily font-black leading-5 text-base text-[#1D2D3E]"
                    >
                        <b>Top 20</b>
                    </Title>
                </FlexBox>
            }
            columns={[
                {
                    Header: 'Name',
                    accessor: 'class_desc',
                    disableResizing: true,
                },
                {
                    Header: 'Suppliers',
                    accessor: 'supplier_count',
                    disableResizing: true,
                    width: 90,
                    hAlign: 'Right',
                },
                {
                    Header: '% Total',
                    accessor: 'total_perc',
                    disableResizing: true,
                    width: 120,
                    hAlign: 'Right',
                },
                {
                    Header: '',
                    id: 'supplier-actions',
                    width: 70,
                    disableResizing: true,
                    Cell: ({ row }) => {
                        return (
                            <FlexBox>
                                <Button
                                    icon="edit"
                                    onClick={() => {
                                        navigate(
                                            `? open some page`
                                        )
                                    }}
                                />
                            </FlexBox>
                        )
                    },
                },
            ]}
            data={currCategories}
            loading={loading}
            visibleRows={numRows.toString()}
        ></AnalyticalTable>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
giladvidalcommented, May 9, 2022

Thanks @Lukas742 for helping in both options.

0reactions
Lukas742commented, May 9, 2022

This looks more like the default selection behavior to me, if this is really meant for indication of navigation only, this could be confusing when working with tables in different applications.

To change the background color of the row you can create a plugin hook and add/overwrite styles there. codeSandbox

Read more comments on GitHub >

github_iconTop Results From Across the Web

sap.ui.table.AnalyticalTable - API Reference - Demo Kit
Description: In an AnalyticalTable control you can only select indices, which correspond to the currently visualized tree. Invisible nodes (e.g. collapsed child ...
Read more >
Analytical Table: Highlight Rows · Issue #461 - GitHub
You can enable row highlights by setting the prop withRowHighlight on the AnalyticalTable and pass a field accessor highlightField where the ...
Read more >
Analytical Table (ALV) | SAP Fiori Design Guidelines
An analytical table contains a set of data that is structured in rows and columns. It provides several powerful possibilities for working with...
Read more >
How to make analytical table display more rows SAP FIORI
Im looking for a way to make the table show maybe 10 rows or something. Here is a picture of the table: As...
Read more >
Analytical Table of Contents - Kant's Analytic
Analytical Table of Contents. Published online by Cambridge University Press: 03 May 2011. Jonathan Bennett. Show author details ...
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