Bower component with additional components for SAPUI5/OpenUI5.
bower install sapui5-extensions --save-dev
- register the sap.extension namespace in your sapui5 bootstrap tag: Example:
<script id="sap-ui-bootstrap"
src="bower_components/openui5-bower/resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m, sap.ui.layout"
data-sap-ui-xx-bindingSyntax="complex"
data-sap-ui-resourceroots='{
"my.namespace": "./",
"openui5.extension": "bower_components/sapui5-extensions/src/"
}'> /* endOfResourceroots */
</script>
- install dependencies by running
npm install
- start karma server
node_modules/karma/bin/karma start karma.conf.js
Per default one PhantomJS Instance is also started, connects to karma and executes the tests. - Open a browser of your choice and connect it to localhost:9876. The tests should be executed immediately.
- install dependencies by running
npm install
- start grunt web server
grunt connect:qunit
- Open a browser of your choice and open localhost:9090. The tests should be executed immediately.
See also:
<openui5.extensions.ui.FunctionImport
functionImportName="FunctionName"
parameters="
{
Argument1: '1',
Argument2: '2'
}"
asModelName="FunctionImport"
modelName="SourceModel">
<Text text="{FunctionImport>/Result}"/>
</openui5.extensions.ui.FunctionImport>