18
Modern UI development with Lightning Components Alba Azcona Rivas Architecture Lead FinancialForce @Alba_ARivas

Modern UI development with Lightning Components - Spanish!

Embed Size (px)

Citation preview

Page 1: Modern UI development with Lightning Components - Spanish!

Modern UI development with Lightning ComponentsAlba Azcona RivasArchitecture Lead FinancialForce

@Alba_ARivas

Page 2: Modern UI development with Lightning Components - Spanish!

GREAT ALONE. BETTER TOGETHER. Trabajando con Salesforce desde 2009

Salesforce compañía inversora

650+ empleados, base en San Francisco

2

Page 3: Modern UI development with Lightning Components - Spanish!

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

Page 4: Modern UI development with Lightning Components - Spanish!

Lightning ExperienceDesarrollo basado en componentes

App BuilderAppExchange

para ComponentesConstruye y comparte

UIs responsivasConstruye aplicaciones

con drag & dropAccede a una librería de

componentes predefinidos por partners

de Salesforce

Componentes

Page 5: Modern UI development with Lightning Components - Spanish!

Visualforce: "Page-Centric”

1. Navegador pide la página

Cliente Servidor

4. Navegador renderiza html

2.Servidor ejecuta código Apex3.Servidor devuelve la página (html + data)

Page 6: Modern UI development with Lightning Components - Spanish!

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 4Mostrar UI diferente? Ir a 3

Page 7: Modern UI development with Lightning Components - Spanish!

• 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”

Page 8: Modern UI development with Lightning Components - Spanish!

DEMO

Page 9: Modern UI development with Lightning Components - Spanish!

Partes de un Componente

UI MarkupData bindingAtributos

Componente

Page 10: Modern UI development with Lightning Components - Spanish!

Partes de un Componente

UI MarkupData bindingAtributos

Componente

ManejadoresEventos

Controlador(js)

Page 11: Modern UI development with Lightning Components - Spanish!

Partes de un Componente

UI MarkupData bindingAtributos

Componente

Manejadores Eventos

Controlador(js)Estilo

CSSencapsulado

Page 12: Modern UI development with Lightning Components - Spanish!

Partes de un Componente

UI MarkupData bindingAtributos

Componente

Manejadores Eventos

Lógicacompartida

Helper(js)Estilo

CSS encapsulado

Controlador(js)

Page 13: Modern UI development with Lightning Components - Spanish!

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

Page 14: Modern UI development with Lightning Components - Spanish!

Partes de un Componente

UI MarkupData bindingAtributos

Componente

Manejadores Eventos

Lógicacompartida

Helper(js)Estilo

CSS encapsulado

Controlador(js)

MétodosAura enabled

Controlador(Apex)

Page 15: Modern UI development with Lightning Components - Spanish!

Partes de un componente

UI MarkupData bindingAtributos

Componente

Descriptor de diseño

Manejadores Eventos

Lógicacompartida

Helper(js)Estilo

CSSencapsulado

App Builder

Controlador(js)

MétodosAura enabled

Controlador(Apex)

Page 16: Modern UI development with Lightning Components - Spanish!

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?

Page 17: Modern UI development with Lightning Components - Spanish!

La forma divertida paraAdmins, Developers y cualquiera

de aprender Salesforcehttp://trailhead.salesforce.com

Page 18: Modern UI development with Lightning Components - Spanish!

https://github.com/aazcona/accounts-app @Alba_Arivas

[email protected] albasfdc.wordpress.com

¡Gracias! ¿Preguntas?