Salesforce Developer en FINANCIAL FORCE um FinancialForce.com
29. Sep 2016•0 gefällt mir•330 views
1 von 18
Modern UI development with Lightning Components - Spanish!
29. Sep 2016•0 gefällt mir•330 views
Downloaden Sie, um offline zu lesen
Melden
Ingenieurwesen
Introduction to Lightning Components. Talk I did in Essentials Madrid 2016. Based on this presentation from Christophe Coenrats https://www.youtube.com/watch?v=KxamMxgzjxw
Modern UI development with Lightning Components - Spanish!
1. Modern UI development with
Lightning Components
Alba Azcona Rivas
Architecture Lead FinancialForce
@Alba_ARivas
2. GREAT ALONE. BETTER TOGETHER.
Trabajando con Salesforce desde 2009
Salesforce compañía inversora
650+ empleados, base en San Francisco
2
3. Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements
that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results
of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements
other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or
other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any
statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality
for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth,
interruptions or delays in our Web hosting, breach of our security measures, risks associated with possible mergers and acquisitions, the
immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and
manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com
products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results
of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal quarter. This document and others are available
on the SEC Filings section of the Investor Information section of our Web site.
Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be
delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently
available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
Forward looking statement
4. Lightning Experience
Desarrollo basado en componentes
App Builder
AppExchange
para Componentes
Construye y comparte UIs
responsivas
Construye aplicaciones con
drag & drop
Accede a una librería de
componentes predefinidos
por partners de Salesforce
Componentes
5. Visualforce: "Page-Centric”
1. Navegador pide la página
Cliente Servidor
4. Navegador renderiza html
2. Servidor ejecuta código Apex
3. Servidor devuelve la página (html + data)
6. Componentes Lightning: "App-Centric”
1. Navegador pide el componente
Cliente Servidor
3. Navegador construye la UI con JS
4. Navegador pide datos
7. Vuelta a 3
2. Servidor devuelve el bundle del
componente
5. Servidor ejecuta código Apex
6. Servidor devuelve datos (sólo
lo que hemos pedido!) JSON
Mostrar datos diferentes? Ir a 4
Mostrar UI diferente? Ir a 3
7. • Permite experiencias de usuario más fluidas e
interactivas
• Menos refrescos de página, menor latencia
• Fácil integración con el estilo de Lightning
Experience (componentes predefinidos +
Lightning Design System)
• Componentes ensamblables para crear
aplicaciones
• Integrado en Developer Console + extensión
chrome para debugging (Salesforce Lightning
Inspector)
Componentes Lightning: "App-Centric”
9. Partes de un Componente
UI Markup
Data binding
Atributos
Componente
10. Partes de un Componente
UI Markup
Data binding
Atributos
Componente
Manejadores
Eventos
Controlador(js)
11. Partes de un Componente
UI Markup
Data binding
Atributos
Componente
Manejadores
Eventos
Controlador(js)Estilo
CSS
encapsulado
12. Partes de un Componente
UI Markup
Data binding
Atributos
Componente
Manejadores
Eventos
Lógica
compartida
Helper(js)Estilo
CSS
encapsulado
Controlador(js)
13. Agente de Eventos de aplicación
Event ObjectAccountFilter
<aura:handler event="c:GetAccounts"
action="{!c.handleGetAccountsEvent}"/>
<aura:registerEvent name="getAccounts"
type="c:GetAccounts"/>
var event = $A.get("e.c:GetAccounts");
event.setParams({"filter": filter});
event.fire();
AccountList
Eventos
14. Partes de un Componente
UI Markup
Data binding
Atributos
Componente
Manejadores
Eventos
Lógica
compartida
Helper(js)Estilo
CSS
encapsulado
Controlador(js)
Métodos
Aura enabled
Controlador(Apex)
15. Partes de un componente
UI Markup
Data binding
Atributos
Componente
Descriptor de diseño
Manejadores
Eventos
Lógica
compartida
Helper(js)Estilo
CSS
encapsulado
App Builder
Controlador(js)
Métodos
Aura enabled
Controlador(Apex)
16. Aplicación standalone: .app Visualforce!
Otro componente: .cmp
Menú navegación Salesforce1
Lightning Experience
Fuera de los servidores de Salesforce (Lightning Out) (beta)
Communities
¿Dónde puedo usar un componente?
17. La forma divertida para
Admins, Developers y cualquiera
de aprender Salesforce
http://trailhead.salesforce.com