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

feat: add support for custom listStyle in transfer component #71

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

Conversation

QuantFix
Copy link

This commit adds support for the listStyle parameter in the transfer component, enabling users to customize the style of the transfer list.

++ Changes Made:
Added listStyle as an optional parameter in the transfer function. Ensured listStyle is included in the component's configuration (kw) when provided. Expanded kwargs to pass additional parameters directly to the component.

++ Usage Example:

transfer(
items=['Item 1', 'Item 2'],
index=[0],
label='Example Transfer',
listStyle={'color': 'white', 'background': 'black'}
)
This allows users to apply custom styles directly to the transfer list.

++ Why this change?
Improves flexibility and customization of the transfer component. Addresses the need for styling options without requiring further adjustments in the core library.

This commit adds support for the listStyle parameter in the transfer component, enabling users to customize the style of the transfer list.

++ Changes Made:
Added listStyle as an optional parameter in the transfer function.
Ensured listStyle is included in the component's configuration (kw) when provided.
Expanded kwargs to pass additional parameters directly to the component.

++ Usage Example:

transfer(
    items=['Item 1', 'Item 2'],
    index=[0],
    label='Example Transfer',
    listStyle={'color': 'white', 'background': 'black'}
)
This allows users to apply custom styles directly to the transfer list.


++ Why this change?
Improves flexibility and customization of the transfer component.
Addresses the need for styling options without requiring further adjustments in the core library.
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