Advertisement
ichsan_anam

Main.mxml

Mar 10th, 2021
3,910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.   Licensed to the Apache Software Foundation (ASF) under one or more
  5.   contributor license agreements.  See the NOTICE file distributed with
  6.   this work for additional information regarding copyright ownership.
  7.   The ASF licenses this file to You under the Apache License, Version 2.0
  8.   (the "License"); you may not use this file except in compliance with
  9.   the License.  You may obtain a copy of the License at
  10.  
  11.       http://www.apache.org/licenses/LICENSE-2.0
  12.  
  13.   Unless required by applicable law or agreed to in writing, software
  14.   distributed under the License is distributed on an "AS IS" BASIS,
  15.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16.   See the License for the specific language governing permissions and
  17.   limitations under the License.
  18.  
  19. -->
  20. <j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  21.                xmlns:j="library://ns.apache.org/royale/jewel"
  22.                xmlns:js="library://ns.apache.org/royale/basic"              
  23.                xmlns:html="library://ns.apache.org/royale/html"
  24.                xmlns:components="components.*"
  25.                initialize="init()">
  26.  
  27.     <fx:Script>
  28.         <![CDATA[
  29.             import components.SMQuillEditor;
  30.  
  31.             private function init():void            
  32.             {
  33.                 var editor:SMQuillEditor=new SMQuillEditor();
  34.                 container.addElement(editor);
  35.             }
  36.         ]]>
  37.     </fx:Script>
  38.    
  39.     <j:beads>
  40.         <js:ApplicationDataBinding/>
  41.     </j:beads>
  42.  
  43.     <j:initialView>
  44.         <j:View>
  45.             <j:beads>
  46.                 <j:VerticalCenteredLayout/>
  47.             </j:beads>
  48.  
  49.             <j:Card width="90%" visible="true">
  50.                 <j:CardHeader>
  51.                     <html:H3 text="Using external Javascript Libraries" className="primary-normal"/>
  52.                 </j:CardHeader>
  53.                                
  54.                 <j:CardPrimaryContent>
  55.                     <j:Label html="This example uses quiljs library"/>
  56.                     <j:Group localId="container" width="200" height="200">
  57.                     </j:Group>
  58.                 </j:CardPrimaryContent>
  59.              </j:Card>
  60.         </j:View>
  61.     </j:initialView>
  62. </j:Application>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement