Closed ninetteadhikari closed 4 years ago
hey @hvitis sorry for not being clear in my ticket earlier but as I look at the Dialog component more I realize we can change some of the items to make it more reusable. If it's possible it will be great if you can take a stab at it. Let me know if you have any questions :)
@Tanvir-rahman would you like to take this card on? Reach out to @ninetteadhikari if you have questions
Sure @andrewtpham :)
Hello, @ninetteadhikari i have some queries -> Basic Dialog 1) The button will be removed from the component. And based on dialogVisible prop modal will be visible/invisible right? 2) There is already a click handler for confirm button. Are you requesting something different?
Form Dialog 1) Yeah we can use slots. Need to look further more how we can handle this....
Hello, @ninetteadhikari i have some queries -> Basic Dialog
- The button will be removed from the component. And based on dialogVisible prop modal will be visible/invisible right?
- There is already a click handler for confirm button. Are you requesting something different?
Form Dialog
- Yeah we can use slots. Need to look further more how we can handle this....
Hey! Basic dialog
clickHandler
is currently in the component. I was thinking of exposing it so that we can pass whatever function we want instead of hard coding it. What do you think?Form dialog
Hello, @ninetteadhikari. Yeah i saw some implementation. I think we are already exposing it through 'dialogConfirmed', 'dialogFormSubmitted'. Is there something else are you expecting ?
Hello, @ninetteadhikari. Yeah i saw some implementation. I think we are already exposing it through 'dialogConfirmed', 'dialogFormSubmitted'. Is there something else are you expecting ?
hey sorry for not responding earlier, yes you are right we don't need the clickHandler then 😊
Is your feature request related to a problem? Please describe.
Basic Dialog
Confirm
buttonConfirm
buttonhandleClose
to close the Dialog instead of opening another nested DialogForm Dialog
form-item
andinput
fields out of the component so that it is not hardcoded. This will allow the component to be used as a shell where any form item and input fields can be entered.