1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    4
    Vote Rating
    0
    pallakg is on a distinguished road

      0  

    Default Unanswered: Calendar plugin is "hogging" the store

    Unanswered: Calendar plugin is "hogging" the store


    I am using https://github.com/SwarmOnline/Ext.ux.TouchCalendar in my app. I also want to display the calendar items on the home page as a list.

    It seems the plugin does not let me share the calendar store with other screens.
    This is the code for my calendar container (similar to working demo in link above).

    Code:
    Ext.define('app.view.Calendar', {
        extend: 'Ext.Container',
        requires: ['Ext.ux.TouchCalendarSimpleEvents'],
        xtype: 'calendarview',
        alias: 'widget.calendarview',
    
    
        config: {
            layout  : 'fit'
        },
        
        initialize: function(){
            var calendar = new Ext.ux.TouchCalendarView({
                            viewMode: 'month',
                            itemId: 'calendarView',
                            weekStart: 0,
                            value: new Date(),
                            eventStore: Ext.getStore('Appointments'),
                            
                            plugins: [Ext.create('Ext.ux.TouchCalendarSimpleEvents')]
                        });
           
            this.setItems([
                calendar
            ]);
    
    
            this.callParent(arguments);
        }
    });
    Initially the app shows the list items on the home page. Pressing calendar in the side bar menu and then returning to the home page shows "No appointments found".
    The plugins line above is the one which seems to be causing the problem. Is there any way to bind the plugin and still share the model?

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,876
    Answers
    223
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    As this ux is not a Sencha supported product I would recommend contacting the author directly.
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar