fiftyone icon indicating copy to clipboard operation
fiftyone copied to clipboard

add click support to container in OperatorIO

Open imanjra opened this issue 4 months ago • 1 comments

What changes are proposed in this pull request?

add click support to container in OperatorIO

How is this patch tested? If it is not, please explain why.

Using a test python panel:

        panel.btn(
            "next",
            label="Next",
            on_click=self.next_step,
            container=types.OutlinedContainer(m=2, on_click=self.handle_event),
        )

## Release Notes

### Is this a user-facing change that should be mentioned in the release notes?

<!--
Please fill in relevant options below with an "x", or by clicking the checkboxes
after submitting this pull request. Example:
-   [x] Selected option
-->

-   [ ] No. You can skip the rest of this section.
-   [x] Yes. Give a description of this change to be included in the release
        notes for FiftyOne users.

add click support to container in OperatorIO

### What areas of FiftyOne does this PR affect?

-   [x] App: FiftyOne application changes
-   [ ] Build: Build and test infrastructure changes
-   [ ] Core: Core `fiftyone` Python library changes
-   [ ] Documentation: FiftyOne documentation changes
-   [ ] Other


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
	- Enhanced `ContainerizedComponent` and `PaperContainer` for improved interactivity.
	- Added support for new props (`path`, `on_click`, `params`, `prompt`) for better event handling and flexibility.
	- Introduced hover effects and transition styling for a more engaging user experience.
  
- **Bug Fixes**
	- Improved JSON serialization for the `Container` class to ensure keyword arguments are correctly formatted.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

imanjra avatar Oct 18 '24 14:10 imanjra