Inplace: Expose close()
and open()
methods
#3348
Unanswered
BenJackGill
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The Inplace component has emits for
open
andclose
that are emitted during open and close, but it doesn't expose methods to programmatically control its state. Addingopen()
andclose()
methods would improve its flexibility and allow better integration with form controls and other components.Use Case
Common scenarios where programmatic control would be valuable:
Example
Consider this form with multiple Inplace editors and a reset button. This is a very hacky solution:
Current Workaround
Currently, we must store the
closeCallback
from the content slot and manage it manually:This is cumbersome and requires additional state management.
Proposed API
Beta Was this translation helpful? Give feedback.
All reactions