Sencha-touch-view-floating

提供:Dev Guides
移動先:案内検索

Sencha Touch-フローティングコンポーネント

説明

これは、フローティングコンポーネントを作成するためです。

以下は、使用法を示す簡単な例です。

<!DOCTYPE html>
<html>
   <head>
      <link href = "https://cdn.sencha.com/touch/sencha-touch-2.4.2/resources/css/sencha-touch.css" rel = "stylesheet"/>
      <script type = "text/javascript" src = "https://cdn.sencha.com/touch/sencha-touch-2.4.2/sencha-touch-all.js">
      </script>
      <script type = "text/javascript">
         Ext.application({
            name: 'Sencha',
            launch: function() {
               Ext.Viewport.add({
                  xtype: 'panel',
                  html: 'This is a centered panel', centered: true
               });
            }
         });
      </script>
   </head>
   <body>
   </body>
</html>

これにより、次の結果が生成されます–