Activity Forums Salesforce® Discussions How can we use Lightning Components with the Salesforce1 Mobile App?

  • Manpreet

    Member
    May 1, 2018 at 10:50 am

    Hi pranav,

    For this purpose we need to first make a lightning tab which points to the lightning component we created and then we have to include that tab in the salesforc1 Mobile Navigation select list and the newly created tab to it.

    Thanks.

  • Aman

    Member
    May 1, 2018 at 11:04 am

    Hi Pranav,

    In the components you wish to include in Lightning Experience, add implements="force:appHostable" in the aura:component tag and save your changes.
    <aura:component implements="force:appHostable">
    Use the Developer Console to create Lightning components.
    Follow these steps to include your components in Lightning Experience and make them available to users in your organization.
    Create a custom tab for this component.From Setup, enter Tabs in the Quick Find box, then select Tabs.
    Click New in the Lightning Component Tabs related list.
    Select the Lightning component that you want to make available to users.
    Enter a label to display on the tab.
    Select the tab style and click Next.
    When prompted to add the tab to profiles, accept the default and click Save.
    Add your Lightning components to the App Launcher.From Setup, enter Apps in the Quick Find box, then select Apps.
    Click New. Select Custom app and then click Next.
    Enter Lightning for App Labeland click Next.
    In the Available Tabs dropdown menu, select the Lightning Component tab you created and click the right arrow button to add it to the custom app.
    Click Next. Select the Visible checkbox to assign the app to profiles and then Save.
    Check your output by navigating to the App Launcher in Lightning Experience. Your custom app should appear in theApp Launcher. Click the custom app to see the components you added.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos