Skip to content

Instantly share code, notes, and snippets.

@harun
harun / image-ui5.html
Created August 27, 2018 09:08 — forked from pmarcely/image-ui5.html
Upload Image in UI5
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<script src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons, sap.ui.table, sap.ui.unified"
data-sap-ui-theme="sap_bluecrystal">
@harun
harun / image-arraybuffer.js
Created June 26, 2018 11:20 — forked from candycode/image-arraybuffer.js
Create a jpg image from ArrayBuffer data
// Simulate a call to Dropbox or other service that can
// return an image as an ArrayBuffer.
var xhr = new XMLHttpRequest();
// Use JSFiddle logo as a sample image to avoid complicating
// this example with cross-domain issues.
xhr.open( "GET", "http://fiddle.jshell.net/img/logo.png", true );
// Ask for the result as an ArrayBuffer.
xhr.responseType = "arraybuffer";
@harun
harun / gist:74c5a5df5346c90906a7b1f7d4a88d65
Created September 7, 2017 17:01 — forked from gbvaibhav/gist:02b667afb34d9ae2d972dbce0929b70e
sapui5 icon Tab bar selection change at the click of a button https://jsbin.com/dobuqeb
<!DOCTYPE html>
<html><head>
<meta name="description" content="UI5 List example with local JSON model" />
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<title>SAPUI5 Example gbvaibhav</title>
<!-- Load UI5, select gold reflection theme and the "commons" and "table" control libraries -->
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
http://flukeout.github.io/
#01 plate
#02 bento
#03 #fancy
#04 plate > apple
#05 #fancy pickle
#06 .small
#07 orange.small
#08 bento > orange
@harun
harun / gist:1e540311979f4264c11768ff455e3215
Created July 14, 2017 08:49 — forked from dennisseah/gist:63289b77d6d7d902b3de
SAPUI5: Set background color for column in sap.ui.table.Table
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script id="sap-ui-bootstrap"
type="text/javascript"
data-sap-ui-libs="sap.ui.table,sap.ui.commons"
data-sap-ui-theme="sap_bluecrystal"
@harun
harun / index.html
Created March 15, 2017 12:05 — forked from ricma/index.html
Sapui5 NavigationBar ToolTip Issue http://scn.sap.com/thread/3594866
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons,sap.suite.ui.commons"
data-sap-ui-theme="sap_bluecrystal"
@harun
harun / index.html
Created March 9, 2017 05:39 — forked from narennaik/index.html
Creating Custom Controls in SAPUI5 Demo // source http://jsbin.com/kojisi
<!DOCTYPE html>
<html lang="en">
<head>
<title>Creating Custom Controls in SAPUI5 Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script id="sap-ui-bootstrap" type="text/javascript" src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.ui.commons">
</script>