Here is another topic about the Simple Modal I am starting to use.
I would just like to point out that handler names may be somewhat confusing, especially in regard to standard components. For example, I keep losing time having to research which is which between Submit Button Logic
and On Submit Button
.
I would like to suggest the following changes :
Submit Button Logic
→ Submit Button Label Logic
(otherwise, I’m always thinking it’s what’s going to happen when I click, and it would be consistent with the Close Button Label Logic
)
PlaceholderLogic
→ Placeholder Logic
(missing space typo)
On Close Button
→ On Close Event
(closing can happen when clicking outside the modal, not only by clicking the button, and it would be consistent with other components)
On Submit Button
→ On Submit Event
(would be consistent with other components such as Form
)