Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
        
        <title>Mobile App with data-bound List</title>
        
        <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" 
                id="sap-ui-bootstrap"
                data-sap-ui-libs="sap.m,sap.ui.layout"
                data-sap-ui-theme="sap_bluecrystal"></script>
        <!-- load the mobile lib "sap.m", the layout lib and the "sap_bluecrystal" theme -->
        
        
        <script type="text/javascript">
          var oLabel = sap.m.Label({
            text: 'my label'
          });
          
            
          var oHtml = new sap.ui.core.HTML({
             content: '<div>my content</div>',
             width: "100%"
          });
          oHtml.placeAt('content');
          
          // won't work as "content" is a property, not an aggregation
          setTimeout(function() {
              oHtml.addContent(oLabel);
          }, 1000);
            
            
        </script>
        
    </head>
    <body id="content" class="sapUiBody">
    </body>
</html>
  
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers