Build responsive enterprise-grade web apps with OpenUI5

23
Build responsive enterprise-grade web apps with OpenUI5 Andreas Kunz (SAP) . @aku_dev http://www.openui5.org

Transcript of Build responsive enterprise-grade web apps with OpenUI5

Page 1: Build responsive enterprise-grade web apps with OpenUI5

Build responsive enterprise-grade

web apps with OpenUI5

Andreas Kunz (SAP). @aku_dev

http://www.openui5.org

Page 2: Build responsive enterprise-grade web apps with OpenUI5

OpenUI5 – What’s that?JavaScript UI library200+ UI controlsMVC, data binding, templating, …Most current browsers and devicesResponsive designEnterprise-gradeIs Open Source, uses Open Source

Page 3: Build responsive enterprise-grade web apps with OpenUI5

Responsiveness

Page 4: Build responsive enterprise-grade web apps with OpenUI5

Responsiveness

Page 5: Build responsive enterprise-grade web apps with OpenUI5

Hello Fluent!<!DOCTYPE html><html><head>

<meta http-equiv='X-UA-Compatible' content='IE=edge' /><title>Hello Fluent</title>

<script id='sap-ui-bootstrap' type='text/javascript'src='https://openui5.hana.ondemand.com/resources/sap-ui-core.js'data-sap-ui-theme='sap_goldreflection'data-sap-ui-libs='sap.ui.commons,sap.ui.ux3'></script>

<script>

new sap.ui.ux3.Shell({content: new sap.ui.commons.Button({text:'Hello Fluent!'})

}).placeAt('content');</script>

</head><body class='sapUiBody'>

<div id='content'></div></body>

</html>

Try it live at JS Bin: http://jsbin.com/wocuxo/5/edit

Page 6: Build responsive enterprise-grade web apps with OpenUI5

MVC

ModelJSON, XML, OData

ControllerViewJS, XML, HTML, JSON

Data Binding

Interaction

Updates

Different view and model types to meet everyone’s needs

Page 7: Build responsive enterprise-grade web apps with OpenUI5

Digging deeper – The DocumentationProject homepage: http://openui5.org- The developer guide- The API documentation- The demo apps- The “Explored” app

Page 8: Build responsive enterprise-grade web apps with OpenUI5

Custom ControlsControls can be defined on-the-fly in JSData binding etc. out of the box

A simple control:http://jsbin.com/openui5-control/2/edit

A Google Map control:http://jsbin.com/tapuwu/2/editNote the two-way data binding!

Page 9: Build responsive enterprise-grade web apps with OpenUI5

HTML TemplatingPowered by Handlebars.jsPlus UI5 model and data bindingCan also be used to define new controls

<div id="simpleTemplate" data-type="text/x-handlebars-template"><div>{{text path="/name"}}:</div><ul>{{#each path="/players"}}<li>{{text path="first"}}{{text path="last"}}</li>

{{/each}}</ul></div>

Page 10: Build responsive enterprise-grade web apps with OpenUI5

?

Page 11: Build responsive enterprise-grade web apps with OpenUI5

“Enterprise-grade”Internationalization and right-to-left support

Accessibility

Extra quality assuranceDebugging support (e.g. Ctrl-Alt-Shift-S popup)

API stability over time

Theming

Page 12: Build responsive enterprise-grade web apps with OpenUI5

ThemingUses LESS to generate CSS files Predefined themes (including High Contrast Black)Visual Theme Designer to edit themes

Page 13: Build responsive enterprise-grade web apps with OpenUI5

Theming

Page 14: Build responsive enterprise-grade web apps with OpenUI5
Page 15: Build responsive enterprise-grade web apps with OpenUI5
Page 16: Build responsive enterprise-grade web apps with OpenUI5
Page 17: Build responsive enterprise-grade web apps with OpenUI5

Nat

iona

l Cen

ter f

or T

umor

Dis

ease

s

Page 18: Build responsive enterprise-grade web apps with OpenUI5

Bangalore Football Club – Fan AppB

anga

lore

FC

Fan

App

Page 19: Build responsive enterprise-grade web apps with OpenUI5
Page 20: Build responsive enterprise-grade web apps with OpenUI5
Page 21: Build responsive enterprise-grade web apps with OpenUI5

Not an official app…

Page 22: Build responsive enterprise-grade web apps with OpenUI5

You are in good companySAS uses UI5 for all new web development and contributes to UI5

Many companies write UI5 apps: Danone, adidas, Geberit, Bilfinger Chemserv, National Center for Tumor Diseases (Germany),…

Vivid community: 2000+ posts per month at SCN forum, stackoverflow,…

“Code Jams” and other meetups all over the world

GitHub project has 5000+ commits in the last six months

Page 23: Build responsive enterprise-grade web apps with OpenUI5

Thank you!Web: http://openui5.org

GitHub: https://github.com/SAP/openui5

Docs & Demos: https://openui5.hana.ondemand.com

Come to our booth for more!

. @OpenUI5