-
Notifications
You must be signed in to change notification settings - Fork 0
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 default input values and outer state management options #81
Labels
enhancement
New feature or request
Comments
thinkjrs
changed the title
✨ [Feature]: Add default input text options
✨ [FEATURE]: Add default input text options
Aug 12, 2022
I just had an additional use for this come up: state management via an HOC flow-through. |
thinkjrs
changed the title
✨ [FEATURE]: Add default input text options
✨ [FEATURE]: Add default input value options
Oct 24, 2022
thinkjrs
changed the title
✨ [FEATURE]: Add default input value options
✨ [FEATURE]: Add default input values and outer state management options
Oct 24, 2022
I'm working on this now and will tag the PR as soon as it's pushed 💥 |
thinkjrs
added a commit
that referenced
this issue
Oct 24, 2022
thinkjrs
added a commit
that referenced
this issue
Oct 24, 2022
thinkjrs
added a commit
that referenced
this issue
Oct 25, 2022
thinkjrs
added a commit
that referenced
this issue
Oct 25, 2022
thinkjrs
added a commit
that referenced
this issue
Oct 25, 2022
thinkjrs
added a commit
that referenced
this issue
Oct 25, 2022
thinkjrs
added a commit
that referenced
this issue
Oct 25, 2022
thinkjrs
added a commit
that referenced
this issue
Oct 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
It would be nice to be able to customize default input values in the
options
config object.Describe the solution you'd like
Add
inputValues
and other keys tooptions
object, e.g.In contrast to #80 , these options should actually be proper "defaults" and eventually filter through to the backend submission, without any user input (other than submitting the form).
Use cases
PromoButton
state data from a parent component, such as a developer's app dashboard.Requirements
inputValues
tooptions
configsetPromoData
tooptions
configIf either of the above is present, use it to manage state alongside our current implementation.
For example, using
setPromoData
should update inside of thesubmitCampaign
function within thePromoButton
component body implementation.Specifically:
Should include
The text was updated successfully, but these errors were encountered: