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

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.

@murraystevenson murraystevenson self-assigned this Jan 18, 2025
@tomc-cinesite
Copy link
Contributor

A-maze-ing. This will really help with some of the usability Qs we've had of late. Many thanks @murraystevenson 🙏

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.
@johnhaddon johnhaddon force-pushed the renderPassEditorColumnIndex branch from a786435 to 5ac2886 Compare January 21, 2025 12:34
@johnhaddon johnhaddon merged commit 8524c13 into GafferHQ:1.5_maintenance Jan 21, 2025
5 checks passed
@johnhaddon
Copy link
Member

Thanks Murray!

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.

3 participants