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

Update View Of Modal #2

Closed
Bernardoow opened this issue Feb 8, 2017 · 2 comments
Closed

Update View Of Modal #2

Bernardoow opened this issue Feb 8, 2017 · 2 comments

Comments

@Bernardoow
Copy link

Hi Werner,

What is the best message to update a view?

Ex:
I have one textarea with one button. This button change state if text area has text.
I using update for
( novoModel, cmds ) =
update (DiyalogMsg Diyalog.Message.ShowingModal) modelPreUpdate

Its Works.

But maybe new message like Diyalog.Message.UpdatViewModal. Its my sugestion.

@werner
Copy link
Owner

werner commented Feb 8, 2017

Hi Bernardoow,

I'm not sure if I understand, I'm using four messages:

  • ShowingModal: This is to be used in the click event of the button.
  • OkModal: This is to be used when the user clicks on the Ok button in the modal.
  • CloseModal: This is to be used when the modal is canceled.
  • Animate: This is to perform the animations.

You could take a look at a personal project where I'm using the modal as well:

https://github.com/werner/madison-elm/blob/master/src/elm/Components/Warehouses/Update.elm#L29

Best regards.

@werner
Copy link
Owner

werner commented Feb 14, 2017

Hi Bernardoow,

I hope you could solve you're problem, closing this.

@werner werner closed this as completed Feb 14, 2017
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

No branches or pull requests

2 participants