问题描述
是否可以在您自己的工具中使用内置的Laravel Nova确认对话框?我只想使用它与Nova进行交互.
Is it possible to use the built in Laravel Nova confirm dialogue in your own tool? All I would like to use is interact with it how Nova does itself.
该文档对JS主题相当了解,因为您似乎可以使用的唯一内置UI是烤面包: https://nova.laravel.com/docs/1.0/customization/frontend.html#javascript
The docs are quite light on the JS topic, as the only built in UI you seem to be able to work with is the toasted plugin: https://nova.laravel.com/docs/1.0/customization/frontend.html#javascript
推荐答案
您可以随时使用<modal>
组件.
这是它在Nova中的内部工作方式: https://gist.github.com/sanasol/fa7441ceb4da9c6c71f9586ec1d04a5a
Here is how it work internally in Nova: https://gist.github.com/sanasol/fa7441ceb4da9c6c71f9586ec1d04a5a
以下是简化示例: https://gist.github.com/sanasol/b3790b8041fb2dfaa0a5b921ff46f5 >
Here is simplified example: https://gist.github.com/sanasol/b3790b8041fb2dfaa0a5b921ff46f5f3
这篇关于如何在自定义的Laravel Nova工具中使用确认对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!