Salesforce Lightning - 常用标签整合
2017-11-07 10:01
603 查看
aura:component
aura:attribute
aura:handler
aura:iteration
ltng:require
aura:registerEvent
Lightning Component JS controller调用VF页面
Lighting组件, implements="flexipage:availableForAllPageTypes":在LightningAppBuilder中使用。 implements="force:appHostable":可以添加到tab,包括移动端和电脑端。 lightning:actionOverride : 可以重写Action
aura:attribute
组件中的属性,name"",type="".
aura:handler
事件处理器,action="", name="init(或其他)" ,value={!this},处理初始化event,也可以处理自定义事件
<aura:handler event="c:AccountsLoaded" action="{!c.accountsLoadedInJs}"/>
aura:iteration
迭代器,迭代其中的元素,可以用于显示列表数据
<ul> <aura:iteration items="{!v.accounts}" var="account"> <c:AccountListItem account="{!account}"/> </aura:iteration> </ul>
ltng:require
引入外部资源或者Js脚本。
<ltng:require scripts="/resource/leaflet/leaflet.js" styles="/resource/leaflet/leaflet.css" afterScriptsLoaded="{!c.jsLoaded}" />
aura:registerEvent
注册event
<aura:registerEvent name="accountsLoaded" type="c:AccountsLoaded"/>
Lightning Component JS controller调用VF页面
$A.get("e.force:navigateToURL").setParams( {"url": "/apex/pageName"}).fire();
相关文章推荐
- Salesforce Lightning - 工作中常用的技能总结
- Salesforce Lightning 使用lightning:dualListbox报错“Can not read property 'xxx' of undefined”
- Salesforce Lightning Winter 18 发布的五个控件
- Salesforce Lightning 中修改"最近列表"要显示的字段
- Salesforce Lightning 使用 SVG
- Salesforce Lightning 在页面布局中添加相关列表tab
- Salesforce Lightning 组件间的交互
- Salesforce / Salesforce Lightning 移除快速操作
- Salesforce Lightning {!expression}和{#expression}的区别
- H5手机移动端WEB开发资源整合 常用的标签及注意事项
- Salesforce Lightning 修改后不立即生效
- Salesforce Lightning 动态初始化选项列表
- Salesforce Lightning 在JS controller中调用另一个JS方法
- Salesforce Lightning 重写lightning的View操作报错
- Salesforce HaoIDE加载org中Lightning组件
- bootstrap2.3.2常用标签的使用
- maven的pom.xml配置文件中常用的配置标签解析
- salesforce vf page 导入其它网页
- 常用的属性标签
- 一周学会HTML----Day02常用标签(上)