Skip to content

Add getStringValue method to BlockKit inputs#267

Merged
zmarushchak-hs merged 2 commits intomasterfrom
add-string-value-for-vieinput
Feb 17, 2022
Merged

Add getStringValue method to BlockKit inputs#267
zmarushchak-hs merged 2 commits intomasterfrom
add-string-value-for-vieinput

Conversation

@zmarushchak-hs
Copy link
Copy Markdown
Contributor

Currently, each input type has its own type for the included value it is needed to handle each input separately. It is not convenient when handling a collection of inputs (consider situation when different BlockKit inputs are submitted for the same view). This PR adds a getter to the ViewInput interface to make values extraction more universal (return a String value).
I decided that converting to String DatePicker and multiple checkboxes inputs makes no sense and I think it is OK to handle them as a special case.

Copy link
Copy Markdown

@leodevnull leodevnull left a comment

Choose a reason for hiding this comment

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

Good job! Approve 🚀

@zmarushchak-hs zmarushchak-hs merged commit 2542f00 into master Feb 17, 2022
@zmarushchak-hs zmarushchak-hs deleted the add-string-value-for-vieinput branch February 17, 2022 14:32
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