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

[core] pushItem and removeItem methods on array field handle #29

Closed
mixvar opened this issue Nov 2, 2020 · 0 comments · Fixed by #30
Closed

[core] pushItem and removeItem methods on array field handle #29

mixvar opened this issue Nov 2, 2020 · 0 comments · Fixed by #30
Assignees
Projects
Milestone

Comments

@mixvar
Copy link
Collaborator

mixvar commented Nov 2, 2020

from POC:

      /**
       * Will set the array field value to its copy with the item added at the end.
       * Will run field validation with `change` trigger.
       * Will set `isTouched` to `true`.
       */
      pushItem: (item: E) => void;

      /**
       * Will set the array field value to its copy with the item at index `i` removed.
       * Will run field validation with `change` trigger.
       * Will set `isTouched` to `true`.
       */
      removeItem: (i: number) => void;
@mixvar mixvar added this to the MVP milestone Nov 2, 2020
@mixvar mixvar self-assigned this Nov 2, 2020
@mixvar mixvar added this to To do in FormTS via automation Nov 2, 2020
@mixvar mixvar moved this from To do to In progress in FormTS Nov 2, 2020
@mixvar mixvar closed this as completed in #30 Nov 4, 2020
FormTS automation moved this from In progress to Done Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant