Close Drawer window with button #3551
Replies: 2 comments 1 reply
-
cc @zxyao145 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Good afternoon Thanks to zxyao145 and also colleague Elderjames It works perfectly Again good work everyone |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good afternoon list
I am using the Drawer control to be able to insert/modify the data of a DTO and then with a button I save them in the db.
Up to here everything works.
My problem is that once I use the SAVE button I would like the control to close.
I tried to see but I can't figure out how to do it.
If anyone has a simple example so I can understand
I call the control with this a button which onClick makes this call
public void OnAddAttribute01() { ShowAttribute01 = true; }
and this is the control in the razor part
<Drawer Id="Attribure01" Width="500" Visible=ShowAttribiute01 OnClose="@(() => ShowAttribiute01 = false)" Title='("Insertion/Modification")'> <Button Style="justify-content:center" Type="@ButtonType.Primary" OnClick="SaveAddAttribute01">@Locale["Common.Save"]</Button> </Drawer>
Thanks and good job
Beta Was this translation helpful? Give feedback.
All reactions