HelloZeroNet / HelloZeroNet/ZeroNet

Load Js In Modal

未关闭
#2,373 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
18.8k
派生
2.3k
PR 合并指标
30 天内没有已合并 PR

描述

I want a script reference to be loaded in Modal to use its functionality

I have tried to put in the modal.cshtml but it is not working
My Modal opening code is as seen below

_createModal = new app.ModalManager({
ViewUrl: abp.appPath + 'path',
scriptURL: abp.appPath + 'js path',
modalClass: 'class'
})

and then opening modal with this command
_createModal.open().

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 modal.cshtml 示例开始,跟踪调用 _createModal.open() 时 app.ModalManager 如何处理 scriptURL 选项。使用提供的模态框配置复现报告的问题,并确定所引用的脚本是否会在模态框中可用;当模态框打开时所请求的脚本功能能够正常工作时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。