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

Feature: Add Support for Minimum/Maximum Row Height and Configurable Row Sizing Modes #45

Open
skutam opened this issue Dec 14, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@skutam
Copy link
Owner

skutam commented Dec 14, 2024

Description

Enhance the library by introducing flexible row sizing options. The goal is to provide two distinct modes for handling row heights:

  1. Uniform Row Heights: All rows have the same height.
  2. Dynamic Row Heights: Each row can vary in height, but must adhere to a configurable minimum and maximum height.

This feature will allow developers to achieve more responsive and visually pleasing layouts, particularly in cases where content varies in size or needs to be displayed more compactly or more spaciously.

Requirements

  1. Uniform Mode:

    • Introduce a setting that, when enabled, ensures all rows share a uniform height.
    • Allow this uniform height to be set explicitly.
  2. Dynamic Mode:

    • Introduce a mode that allows each row’s height to be determined by its content or external settings.
    • Define a minimum and maximum height for rows in this mode.
    • Ensure that rows adjust their heights within these bounds as items are dragged and resized.
  3. Configuration:

    • Provide a clear API or configuration object for switching between uniform and dynamic modes.
    • Allow setting of minRowHeight, maxRowHeight, and rowHeight (for uniform mode) via the library’s configuration.
  4. Compatibility:

    • Ensure that the new row height features integrate smoothly with existing drag and drop, resizing, and placeholder logic.
    • Maintain backward compatibility with existing settings and usage patterns.
  5. Documentation and Examples:

    • Update the documentation to explain how to configure row heights in both modes.
    • Provide usage examples and code snippets.
    • Add a demo showcasing both uniform and dynamic row height modes.

Expected Outcome

The library should provide flexible row height options, allowing developers to choose between a uniform height for all rows or dynamically determined heights within specified minimum and maximum values. This enhancement will improve layout customization and user experience for a wide range of use cases.

@skutam skutam added the enhancement New feature or request label Dec 14, 2024
@skutam skutam added this to the Release 1.2.2 milestone Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant