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 MultiSelect widget to chatmark library #132

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

yangbobo2021
Copy link
Contributor

This pull request adds a new MultiSelect widget to the chatmark library. The changes include:

  • Implementing the MultiSelect class in widgets.py
  • Updating init.py to export MultiSelect
  • Adding support for multiple option selection with checkboxes

These additions will enhance the functionality of the chatmark library by providing users with a multi-select option capability.

- Implement MultiSelect class in widgets.py
- Update __init__.py to export MultiSelect
- Add support for multiple option selection with checkboxes
@@ -162,6 +162,94 @@ def _parse_response(self, response: Dict):

self._selections = selections

class multiSelect(Widget):
Copy link
Collaborator

@kagami-l kagami-l Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类名首字母要大写

然后python这边只是chatmark语法里的符号不一样、其他逻辑一样,可以写成CheckBox的子类、只重写_in_chatmark函数

- Rename multiSelect class to MultiSelect for consistency
- Inherit MultiSelect from Checkbox to reduce code duplication
- Remove redundant properties and methods in MultiSelect class
- Implement MultiSelect widget inheriting from Checkbox
- Update import order in __init__.py for consistency
- Prepare groundwork for multi-select dropdown functionality
@kagami-l kagami-l added this pull request to the merge queue Nov 14, 2024
Merged via the queue into scripts with commit ed9898d Nov 14, 2024
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.

2 participants