Show TOC

Using Single and Complex Attributes for ConfigurationLocate this document in the navigation structure

The attribute data-sap-ui-config makes it possible to provide a single attribute with the configuration information for the SAPUI5 runtime.

You can use this attribute instead of attaching individual options with individual configuration attributes to the script tag. Its content is similar to the global configuration object, but without the enclosing parenthesis: It is a comma separated list of key/value pairs.

Note The usual HTML escape mechanisms must be used if the value contains specific HTML characters (<, >, &) or the quote character that is used to enclose the attribute value.
	<script id="sap-ui-bootstrap" 
		type="text/javascript"
		src="resources/sap-ui-core.js"
		data-sap-ui-config="theme:'sap_platinum',libs:'sap.ui.commons'"
		>
	</script>