简体   繁体   English

将 Salesforce1 Lightning 应用程序添加到 Salesforce1 导航

[英]Adding Salesforce1 Lightning app to Salesforce1 Navigation

I have created a Lightning app in Salesforce that uses Salesforce lightning design system我在 Salesforce 中创建了一个使用 Salesforce 闪电设计系统的闪电应用程序

<aura:application access="GLOBAL" extends="ltng:outApp">
  <ltng:require styles="/resource/SLDS/assets/styles/salesforce-lightning-design-system-ltng.css" />
    <div class="slds">
       <c:MySuperComponent />
    </div> 
</aura:application>

How can I add this app to Salesforce1 Navigation menu?如何将此应用程序添加到 Salesforce1 导航菜单? Is it possible?是否可以? I learned that Lightning components can be exposed but in that case, how can I include "salesforce-lightning-design-system-ltng.css" stylesheet?我了解到可以公开 Lightning 组件,但在这种情况下,我如何包含“salesforce-lightning-design-system-ltng.css”样式表?

Thanks!谢谢!

  1. Use implements="force:appHostable" on component so you can use this component for salesforce1.在组件上使用 implements="force:appHostable" 以便您可以将此组件用于 salesforce1。

  2. Add lightning tab for APP.为APP添加闪电标签。

  3. From Setup, enter Navigation in the Quick Find box, then select Salesforce1 Navigation.从设置中,在快速查找框中输入导航,然后选择 Salesforce1 导航。 Select the custom tab you just created and click Add.选择您刚刚创建的自定义选项卡,然后单击添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM