- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试向主文件夹插件写入第二个菜单,并且我想在文本 block (在旋转木马 block 和插件实例之间)中写入一段 html,以便用户可以导航到另一个插件。
如何使用 buildfire.navigation.navigateTo (pluginData)
那里有功能?如何使用 <a href=""></a>
编写函数?
pluginData
在哪里?该功能需要什么?-pluginId
-instanceId
-folderName
-title
因为当我尝试使用它时(我正在尝试 navigateHome();
函数以确保它有效),我收到“拒绝访问”错误。
现在我正在尝试这个:
<a onclick="javascript:buildfire.navigation.navigateHome();">
但它不起作用。
如何导航到其他插件?
提前致谢。
最佳答案
这里是关于导航的官方文档https://github.com/BuildFire/sdk/wiki/How-to-use-Navigation
基本上 javascript:buildfire.navigation.navigateHome()
应该可以工作。请发布您收到的错误,以便我们进行审核。
可以使用
导航到另一个插件buildfire.navigation.navigateTo(pluginData)
pluginData {
pluginId: (string) The id of the plugin type you'd like to navigate to.
,instanceId: (string) The the instance of the plugin you'd like to navigate to.
,folderName (string) The folder name of the plugin that you'd like to navigate to.
,title (string) The title that should show up in the title bar once the plugin is loaded.
,queryString (string) Optional. This is a query string that will be passed to the next plugin's window.location.search. example: "name=Larry&age=36&showDetails=true"
}
引用号:https://github.com/BuildFire/sdk/wiki/How-to-use-Navigation#buildfirenavigationnavigateto-plugindata
您还应该查看动态数据,以确保您拥有对该插件的最新引用,因为它们可能会发生变化
引用号:https://github.com/BuildFire/sdk/wiki/How-to-use-the-Datastore-Dynamic-Data
综上所述,我想提请您注意当前在轮播中实现的 ActionItems
引用号:https://github.com/BuildFire/sdk/wiki/BuildFire-Action-Items-Component
关于java - Buildfire:使用 buildfire.navigation.navigateTo (pluginData),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46401849/
我有 Blazor WebAssembly 应用程序,其中包含一个列表和一个编辑页面。 当我查看实体列表并单击其中一个进行编辑时,使用 NavLink 组件,浏览器会导航到“编辑”页面,显示我的 Lo
我有 Blazor WebAssembly 应用程序,其中包含一个列表和一个编辑页面。 当我查看实体列表并单击其中一个进行编辑时,使用 NavLink 组件,浏览器会导航到“编辑”页面,显示我的 Lo
我在预览版 8 中创建了一个新的 Blazor 服务器端应用程序。当我调用 UriHelper.NavigateTo 从 Index.razor 页面转到计数器页面时,计数器页面被调用两次。 在 In
是否可以在代码隐藏中使用导航管理器进行导航?我有一个全局帮助程序类,如果全局函数失败,我需要将其重定向到特定页面。这可能吗?如果您能够在代码隐藏的 NavagationManager 上创建一个实例,
我在我的应用程序中使用 ngb-datepicker。当在我的组件类中执行函数时,我想导航到特定的月份/年份。我知道 ngbDatePicker 中有一个名为 navigateTo 的方法,可以调用它
[编辑] -> Playground Link 我正在使用 NativeScript 和 Vue 创建一个应用程序。加载后,我想显示一个登录页面,或者如果用户之前已登录,则导航到其他地方。我的页面已加
希望这将是一个简单的,在 Sketchflow 中,我正在尝试连接上下文菜单以导航到另一个页面。 我已经创建了上下文菜单,添加了一个菜单项,右键单击“对象和时间轴”面板中的 mneu 项,然后选择“导
我正在尝试 Blazor ServerSide 并创建了一个组件以在用户未登录时重定向到登录页面。 @inject Microsoft.AspNetCore.Components.Navigation
运行 testcafe 时,某些 URL 未加载。例如,当我尝试重定向到本地主机时,它不会加载并直接进入下一步。 await t.navigateTo('localhost:8080') 最佳答案 这
我注意到我必须使用navigateTo 进行使用已经过身份验证的用户的测试。如果我用 .page 定义它们,它只会让我返回登录屏幕,因为它似乎看不到 Angular 色/状态。 我认为这是有意的,但文
我有一个关于 asp.net core 和 razor 页面的非常简单的问题。 在 c# razor 代码中,我想在某些情况下重定向到另一条路线。 如果之前有异步(等待)webservice 调用,N
您好,我昨天解决了一个问题,但它又出现了。 我尝试使用一个函数在我的 vue 页面之间进行路由。 路由.js import Page from '../components/Page' const r
我正在尝试向主文件夹插件写入第二个菜单,并且我想在文本 block (在旋转木马 block 和插件实例之间)中写入一段 html,以便用户可以导航到另一个插件。 如何使用 buildfire.nav
我在 TestCafe 中进行了以下测试: import { Selector } from 'testcafe'; const TEST_URL = process.env.TEST_URL; fi
我正在使用 NgbDatepicker 可以在 ngAfterViewInit() 上完成喜欢: @ViewChild('dp') datepicker: NgbDatepicker; ngAft
NavigateTo()位于 App.cs 中的函数 public static Task NavigateTo() where T : BaseViewModel { // do s
我才刚刚开始使用 karma,虽然看起来一切都已正确连接并且我的单元测试正在按预期运行,但我无法通过端到端测试找到任何元素。 当我转到调试页面时,我可以看到我的应用程序的一个非常简短的闪现,它告诉我我
一个 Blazor WASM 项目 我在本地主机上调试时按预期开发路由。例如,登录后,如果成功,将调用NavigateTo("/mypage")。这在本地按预期工作,并将我带到 "localhost:
我有一个 Blazor 服务器 Web 应用程序; .NET 5。 我遇到了与在我的 Web 应用程序中的页面之间导航相关的挫折: 当我使用 NavigationManager.NavigateTo(
我是 JS 和 TestCafe 的新手。 在 TestCafe 中使用 PageObjects 我的目标是在运行测试之前启动登录页面并进行身份验证。 .open 调用在固定装置中工作正常。也来自 w
我是一名优秀的程序员,十分优秀!