How do you override the save button text in a modal? I am using Asp.NET MVC version.
4 Answer(s)
-
0
Hi, you can override the modal you want by creating the same .cshtml file under the same path and replace the code-blocks by your needs.
For example, lets assume you want to change the save button's text of the Identity/User/EditModal.cshtml. You need to create the cshtml file in the same path (Pages/Identity/Users/EditModal.cshtml) and copy the original .cshtml file of the module and paste it into your page, then make the necessary changes.
... <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Submit</button> @* Save button text changed as Submit *@ </div> ...
For more information about Customizing UI, please check the documentation.
-
0
I am sorry, I should have clarified. I meant when using the helper method.
<abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)"></abp-modal-footer>
-
0
hi
https://support.abp.io/QA/Questions/1558#answer-c761af8c-e5de-7517-0ff2-39fd922c3805
-
0
This question has been automatically marked as stale because it has not had recent activity.