UI5 Snippets for Atom
A package of snippets for SAPUI5 and OpenUI5
(early days yet, I will be adding more, sourcing from my SublimeUI5 package)

General
jsdec- jQuery.sap.declarejsreq- jQuery.sap.requirejslog- jQuery.sap.log
sap.m
XML
IconTabBar- sap.m.IconTabBarIconTabFilter- sap.m.IconTabFilterList- sap.m.ListObjectAttribute- sap.m.ObjectAttributeObjectAttributeF- sap.m.ObjectAttribute (with formatter)ObjectHeader- sap.m.ObjectHeaderObjectIdentifier- sap.m.ObjectIdentifierObjectListItem- sap.m.ObjectListItemObjectNumber- sap.m.ObjectNumberObjectStatus- sap.m.ObjectStatusObjectStatusF- sap.m.ObjectStatusF (with formatter)Page- sap.m.PageSearchField- sap.m.SearchFieldStandardListItem- sap.m.StandardListItemTable- sap.m.Table
HTML
index.m
ui5indexm - Index file for sap.m-based app.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title>${1:App Title}</title>
<script id="sap-ui-bootstrap"
type="text/javascript"
src="/sapui5/latest/resources/sap-ui-core.js"
data-sap-ui-theme="${2:sap_bluecrystal}"
data-sap-ui-libs="${3:sap.m}"
data-sap-ui-xx-bindingSyntax="${5:complex}"
>
index.m.spmvc
ui5indexmspmvc - Index file for single-page MVC sap.m-based app.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title>${1:App Title}</title>
<script id="sap-ui-bootstrap"
type="text/javascript"
src="/sapui5/latest/resources/sap-ui-core.js"
data-sap-ui-theme="${2:sap_bluecrystal}"
data-sap-ui-libs="${3:sap.m}"
data-sap-ui-xx-bindingSyntax="${5:complex}"
>
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request!
License
MIT © DJ Adams