LoginSignup
1
1

More than 5 years have passed since last update.

ステップバイステップでLightningコンポーネントを楽しもう! - モジュール1

Last updated at Posted at 2015-09-03

まずはコンポーネントを作ってみよう

まずは簡単なコンポーネントを作ります。

画面イメージ

ソース

m01_CreateComponent.cmp
<aura:component implements="force:appHostable">
    <h1>Hello, Umekitaforce!!</h1>
</aura:component>

ポイント

作成方法

1.開発コンソールでコンポーネント作成します。
[File] > [New] > [Lightning Component]
[Name]に「m01_CreateComponent」と入力しSubmit

2.上記コードをコピペ

3.タブを作成します。
[設定] > [作成] > [タブ] > [Lightning コンポーネントタブ]

4.モバイルナビゲーションタブに追加します。
[設定] > [モバイル管理] > [モバイルナビゲーション]

5.以下のURLで動作を確認します。
https://[ yourdomain ]/one/one.app

以降のモジュールでも同じ作業をします。

implements属性

implements="force:appHostable"

コンポーネントをSalesforce1のナビゲーションメニューで使用できるようになります。

implements="flexipage:availableForAllPageTypes"

LightningアプリケーションビルダーやLightningページタブに表示できるようになります。

補足

特になし。


:arrow_backward: 準備へ | モジュール2へ :arrow_forward:

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1