Results 1 to 4 of 4

Thread: embed sencha animator inside sencha touch carousel

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    3

    Default embed sencha animator inside sencha touch carousel

    Hi Community,
    I'm new in this forum and I use sencha touch. In my mind I think that I do a app for iPad where I should insert sencha animator. So There is a syntax to embed sencha animator inside a page on carousel? Thank you

    cheers Jonny Cau

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    The HTML that animator spits out, put that as the html config in an item in a carousel. Then of course you have JS and CSS to include and work with.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    3

    Default

    Hi, thank to answer me. So if understood, I have to insert the content all html file in html tag of carousel like this example carousel :

    var panel =newExt.Panel({
    cls:'cards',
    layout
    :{ type :'vbox', align:'stretch'},
    defaults
    :{ flex:1},
    items:[ carousel,{ xtype :'carousel', ui :'light', direction:'vertical',
    items
    :[{ html:'<p>Carousels can be vertical and given a ui of "light" or "dark".</p>', cls :'card card1'},
    { html:'Card #2', cls :'card card2'},
    { html:'Card #3', cls :'card card3'
    }]}]});

    So inside in item there tree card and between the tag html in each card put different html export file from sencha animator. ok. Can you give me simple example, to understand very well the problem. Maybe can you advice me the method like html or inserthtml?I wait your answer or the other community's friend

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    3

    Default

    Quote Originally Posted by mitchellsimoens View Post
    The HTML that animator spits out, put that as the html config in an item in a carousel. Then of course you have JS and CSS to include and work with.

    Ok, I try to do waht you tell me. So I have four files. The first file is index.html where I add the link to css files to sencha animator and link js animator. The second and third files are those files css and js files sencha animator and the last index.js. So inside the index.js there is :

    Ext.setup({
    tabletStartupScreen: 'tablet_startup.png',
    phoneStartupScreen: 'phone_startup.png',
    icon: 'icon.png',
    glossOnIcon: false,
    onReady: function() {
    // Create a Carousel of Items
    var carousel1 = new Ext.Carousel({
    defaults: {
    cls: 'card'
    },
    items: [{
    html: '<h1>Carousel</h1><p>Navigate the two carousels on this page by swiping left/right or clicking on one side of the circle indicators below.</p>'
    },
    {
    title: 'Tab 2',
    html: '<ol id="AN-sObj-parentOl"><li id="AN-sObj-scene-0"><div class="AN-sObj-stage" id="ext-gen2474"><div class="AN-Object" id="AN-sObj-82"><div id="AN-sObj-val-82"><img src="assets/image 1.jpg"></div></div><div id="AN-sObj-83"></div><div class="AN-Object" id="AN-sObj-84"><div id="AN-sObj-val-84"><img src="assets/image-20-1.png"></div></div><div id="AN-sObj-85"><span>Fresh Vibrant Ingredients</span></div><div id="AN-sObj-86"><span>Steamed To Perfection</span></div><div class="AN-Object" id="AN-sObj-87"><div id="AN-sObj-val-87"><img src="assets/opendish.png"></div></div><div id="AN-sObj-88"><span>Lunch Never Tasted This Good</span></div><div class="AN-Object" id="AN-sObj-89"><div id="AN-sObj-val-89"><img src="assets/image-33.png"></div></div><div id="AN-sObj-90"><span>2</span></div><div id="AN-sObj-91"><span>S</span></div><div class="AN-Object" id="AN-sObj-92"><div id="AN-sObj-val-92"><img src="assets/image 39.png"></div></div><div class="AN-Object" id="AN-sObj-93"><div id="AN-sObj-val-93"><img src="assets/image 51.png"></div></div><div id="AN-sObj-94"><span>Introducing<br><b>New</b> Streaming Entrees.</span></div><div id="AN-sObj-95"><span>GET COUPON NOW &gt;</span></div></div></li></ol>'

    },
    {
    title: 'Tab 3',
    html: '3'
    }]
    });




    new Ext.Panel({
    fullscreen: true,
    layout: {
    type: 'vbox',
    align: 'stretch'
    },
    defaults: {
    flex: 1
    },
    items: [carousel1]
    });
    }
    });

    The problem is How do link the css inside the item in those card and also the js files.
    It's important for me. Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •