Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderPassEditor : Support registering columns with a specific index #6219

Open
wants to merge 1 commit into
base: 1.5_maintenance
Choose a base branch
from

Conversation

murraystevenson
Copy link
Contributor

Columns are usually displayed in the order that they are registered. This change allows custom columns registered after Gaffer's standard columns to be displayed ahead of or intermixed with Gaffer's standard columns.

index specifies the column's position to the right of the "Active" column, as we consider the "Name" and "Active" columns to be a primary part of the editor with fixed positions.

A negative index can be used to position a column at the end of the list. If multiple columns are registered with the same index, they are ordered within that index based on their registration order. So if columns A and B are both registered with an index of -1, they will appear as the rightmost columns, with B positioned after A as it was registered second.

Columns are usually displayed in the order that they are registered. This change allows custom columns registered after Gaffer's standard columns to be displayed ahead of or intermixed within Gaffer's standard columns.

`index` specifies the column's position to the right of the "Active" column, as we consider the "Name" and "Active" columns to be a primary part of the editor with fixed positions.

A negative index can be used to position a column at the end of the list. If multiple columns are registered with the same index, they are ordered within that index based on their registration order. So if columns A and B are both registered with an index of -1, they will appear as the rightmost columns, with B positioned after A as it was registered second.
@murraystevenson murraystevenson self-assigned this Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant