MeteorJS:没有下拉菜单的登录按钮 [英] MeteorJS: Login buttons without a dropdown

查看:41
本文介绍了MeteorJS:没有下拉菜单的登录按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道你可以使用

{{> loginButtons}}

获取带有登录选项的下拉列表.我希望在没有下拉列表的情况下直接在我的页面上显示登录按钮,因为我希望 UI 在移动设备上保持干净.有没有什么办法可以把账户ui从下拉菜单中去掉,放到主页面的div里?

to get a dropdown with login options. I would like to have the login buttons on my page directly without a dropdown since I would like the UI to be clean on mobile. Is there any way to break the accounts ui out of the dropdown and put it in a div on the main page?

推荐答案

我在 #meteor 中问了同样的问题,有人给我发送了这个关于自定义帐户-ui 登录的示例.

I asked the same question in #meteor and someone sent me this example on customizing the accounts-ui login.

它清晰明了.我用它作为指南来自定义帐户用户界面的外观和感觉,它对我很有用.

It is clear and straightforward. I used this as a guide to customize the accounts-ui look and feel and it worked great for me.

https://www.youtube.com/watch?v=-CTSGdQOYYg

有一个警告.如果 account-google 包仍然需要 api 信息设置,则该示例不处理该场景.例如 {{loginButtons}} 将变成红色,让您有机会设置 google-accounts 工作所需的信息.示例中的实现不处理这种情况.因此,请务必在您的应用程序中进行该设置.

There is one caveat. The example does not handle the scenario if the accounts-google package still needs the api information setup. For example {{loginButtons}} will turn red and give you the opportunity to setup the information needed for google-accounts to work. The implementation in the example does not handle that scenario. So be sure to have that setup in your application.

这篇关于MeteorJS:没有下拉菜单的登录按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆