-
Notifications
You must be signed in to change notification settings - Fork 778
Description
Description
Hello PrimeFaces Community,
I am proposing a new feature to enhance the PrimeFaces DataTable component by allowing the option to align frozen columns on the right side.
Describe the solution you would like
Key Points for Discussion:
- Behavior: How to determine which columns should be frozen.
- Control: How users can configure the alignment of frozen columns.
Current Progress:
I have successfully implemented a working demo for version 13.X and have written unit tests to ensure functionality. The implementation appears to be working well.
Next Steps:
I am considering opening a pull request. Before doing so, I would like to gather feedback on the following:
- The proposed behavior for determining and configuring frozen columns.
- Any additional considerations or potential improvements.
Additional context
Control Mechanism:
To enable this feature, I have introduced a new attribute to the DataTable component: alignFrozenColumnsRight, which is a boolean value. When set to true, this attribute will align the frozen columns on the right side. When set to false (the default value), the columns will be aligned on the left side.
Behavior:
- Left Aligned Frozen Columns: The default behavior aligns the specified number of columns from the start of the column definition on the left side.
- Right Aligned Frozen Columns: With the
alignFrozenColumnsRightattribute set totrue, the specified number of columns will be aligned from the end of the column definition on the right side.