1. #41
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Quote Originally Posted by egor4eg View Post
    Hi Andrea. Great job!
    Does this plugin work on iPhone through PhoneGap? (I have a problem with it)

    [UPDATED]

    There was a bug. I fixed it as well as other 2 bugs. I will provide information about them on this week.
    Hi.
    Sure it also works using PhoneGap, in fact I already used it in three different applications.
    However, keep in mind that this component is still in beta and I'm not working on it from a long time.
    If you got any issue, just post them and I'll fix them.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  2. #42
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
    egor4eg is on a distinguished road

      0  

    Default


    Hi Andrea,

    I had 3 issues during the usage of the component in my application. I made hotfixes in your code and uploaded it to http://jsfiddle.net/PYv3D/. By the way, I'm new in sencha, so the issues might be by my mistakes.

    Code:
            this.eventsList = new Ext.tux.EditableList({
                store: this.eventsStore,
                cls: 'eventslist',
                grouped: true,
                emptyText: '<div style="margin:5px;">No events cached.</div>',
                onItemDisclosure: true,
                itemTpl: new Ext.XTemplate("<section>",
                                    "<div class='event'>",
                                    "<span>{name}</span>",
                                    "<span>{time}</span>",
                                    "</div>",
                                    "<footer><p>{[this.formatDescription(values.description)]}</p></footer>",
                                    "</section>", {
                                    formatDescription: function (description) {
                                        //TODO: calculate length by screen resolution
                                        var formatted = description;
                                        if (description.length > 28) {
                                            formatted = description.substring(0, 28) + '...';
                                        }
                                        return formatted;
                                        }
                                    }),
            });
    See issues below:
    1). grouped: true didn't work. - The problem was on the line #173. Some variables used by this method are defined only after onRender event and this caused an error. I just commented this line.
    2). As far as you can see I specified itemTpl by Ext.XTemplate object. - I added a logic to support Ext.XTemplate on the line #143
    3). The component didn't work through phonegape. - The problem was on the line #82. I changed console.info to console.log.

    Thanks

  3. #43
    Sencha User bastard's Avatar
    Join Date
    Aug 2011
    Location
    I'm in Cali baby!
    Posts
    65
    Vote Rating
    4
    bastard is on a distinguished road

      0  

    Default bug with Ext.tux.EditableList

    bug with Ext.tux.EditableList


    Andrea,

    Great work the list as mentioned earlier. But recently, I found a bug and recorded it:
    http://youtu.be/qbETJrTcDqM?hd=1

    It only seems to happen if you act fast. I am using latest version of Chrome...

    Thoughts?

  4. #44
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Quote Originally Posted by bastard View Post
    Andrea,

    Great work the list as mentioned earlier. But recently, I found a bug and recorded it:
    http://youtu.be/qbETJrTcDqM?hd=1

    It only seems to happen if you act fast. I am using latest version of Chrome...

    Thoughts?
    Thank you for your video.
    That is clearly a bug, so I should find the time to fix it as soon as possible
    I'll let you know when it will be ok.

    Thank you again.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  5. #45
    Sencha User bastard's Avatar
    Join Date
    Aug 2011
    Location
    I'm in Cali baby!
    Posts
    65
    Vote Rating
    4
    bastard is on a distinguished road

      0  

    Default how to include the .scss file

    how to include the .scss file


    Anyone know how to include the _editable-list.scss file in your program to get this plugin to work?

    Andreas mentioned in a previous post that one need to compile the _editable-list.scss in order to get the plugin working. How does one do that?

    I tried adding this line into my config.rb hoping it would load/compile the _editable-list.scss when I run "compass compile" on my application.scss

    Code:
    load File.join(sass_path, '..', '..', 'lib', 'plugins', 'Ext.tux.EditableList', 'resources', 'sass')
    But I get this error when I attempt to compile my application.scss:

    error application.scss (Line 20: Undefined mixin 'sencha-tux-editablelist'.)


    So far my config.rb looks like this:

    Code:
    # Delineate the directory for our SASS/SCSS files (this directory)
    sass_path = File.dirname(__FILE__)
     
    # Delineate the CSS directory (under resources/css in this demo)
    css_path = File.join(sass_path, "..", "css")
     
    # Delinate the images directory
    images_dir = File.join("..", "images")
     
     
    # Load Andrea's EditableList 
    load File.join(sass_path, '..', '..', 'lib', 'plugins', 'Ext.tux.EditableList', 'resources', 'sass')
    
    
    # Load the sencha-touch framework
    load File.join(sass_path, '..', '..', 'lib', 'sencha-touch-1.1.0', 'resources', 'themes')
    
    
    # Specify the output style/environment
    output_style = :expanded
    environment = :development
    My application.scss looks like this:
    Code:
    $base-color: #696969;
    
    @import 'sencha-touch/default/all';
    @include sencha-panel;
    @include sencha-buttons;
    @include sencha-sheet;
    @include sencha-picker;
    @include sencha-tabs;
    @include sencha-toolbar;
    @include sencha-toolbar-forms;
    @include sencha-carousel;
    @include sencha-indexbar;
    @include sencha-list;
    @include sencha-list-paging;
    @include sencha-list-pullrefresh;
    @include sencha-layout;
    @include sencha-form;
    @include sencha-msgbox;
    @include sencha-loading-spinner;
    @include sencha-tux-editablelist; //  <------- ERROR HERE

  6. #46
    Touch Premium Member
    Join Date
    Feb 2011
    Posts
    57
    Vote Rating
    0
    mvoss is on a distinguished road

      0  

    Default


    Hi,

    first of all awesome work! One of the best ST plugins I have seen! I am definetely going to use this in my project. However I have two questions/feature requests:

    1) It would be nice to have a way to configure if records in the list should be deletable. Maybe by a entry on the record, or even with a custom javascript function. Some entries in my list the user should not be able to delete, and some the user can delete.

    2) It would be nice to have some of the items in the list not to move out of the way when sorting. They should instead be droptargets. This would be nice for kind of a document tree with folders and files. One could then drop files onto folders while still being able to reoder files and folders.

    This might already be possible, but I have read this thread and the initOptions of the component but not found a way to do this. Is this already possible, if not do you have any plans of adding this?

    Regards,
    Markus

  7. #47
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    fatbuddha is on a distinguished road

      0  

    Default


    This is a really great piece of work, that should help out a lot of people. Thanks for sharing it.

    One slight snag that I've hit, is that I'm trying to use Sencha 2.0, and after spending an hour attempting to port it I've come to the conclusion that I don't understand Sencha well enough to make it work.

    It would be great if you could make the changes necessary to make it compatible with Sencha 2.0 (I think that 2.0 is stable enough now, but you are probably in a better position to judge), otherwise I might try changing my code to using Sencha 1.x.

    Either way, thanks again.

    Rob

  8. #48
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Thank you for your feedback Rob .
    As I said, I will port this extension to Sencha Touch 2 when the first stable version will be released.
    At the moment Sencha Touch 2 is stable enough but you know, i think the dev team will release some new features that will also let this component works better and faster.
    For this reason I'm waiting that everything will be released to let me better evaluate what is the best way to develop it.

    I Hope you understand my position
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  9. #49
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    fatbuddha is on a distinguished road

      0  

    Default


    That makes sense. I've come to realise that it is probably too early to adopt 2.0 for near-term projects, so I am happy to stick with 1.x for now, and look forward to when 2.0 is ready.

  10. #50
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Quote Originally Posted by fatbuddha View Post
    That makes sense. I've come to realise that it is probably too early to adopt 2.0 for near-term projects, so I am happy to stick with 1.x for now, and look forward to when 2.0 is ready.
    That's not really true. If I had to start a new Sencha Touch project today, I'd going for sure on ST2.
    It is pretty mature now and the dev team have developed some great improvements that brings Sencha Touch to the next level. Also for what concert custom components development it is already a step forward, but the problem is that I'm a perfectionist, so I prefer to wait and study the framework at best when it will be complete to pick the right development direction and provide a reliable component
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX