kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Customization in Files view #518

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I want to add checkbox before file name in file view section.
2.
3.

What is the expected output? What do you see instead?
the value of checkbox should be item id, and using that I wan to do some 
customization

What version of the product are you using? On what operating system?
2.2.9 & linux (sorry, I don't want to update mollify version)

Please provide any additional information below.

Original issue reported on code.google.com by john.bot...@gmail.com on 26 Feb 2014 at 10:34

Attachments:

GoogleCodeExporter commented 8 years ago
Unfortunately I cannot handle customization requests with project issues here, 
I don't have resources to help people with their specific customization needs, 
it would take all the time I have (paid services is the only possibility for 
customizations).

I can only give generic instructions on how to add custom content (in general), 
but cannot give exact examples on how to do your specific task.

Comments plugin has an example on how to register custom list column, where you 
can add any content you like.

Something like this

    var MyPlugin = function() {
        var that = this;

        this.getCellContent = function(item, data) {
            return "<div>my stuff</div>";
        };

        return {
            id: "plugin-my",
            initialize: that.initialize,
            fileViewHandler : {
                filelistColumns : function() {
                    return [{
                        "id": "my-list-col",
                        "title-key": "my-col-title-key",
                        "width" : 50,
                        "content": that.getCellContent,
                        "on-click": function(item, data, ctx) {
                            //do something on cell click
                        }
                    }];
                }
            }
        };
    }

Then you add column id "my-list-col" into the client init file list columns 
(and of course MyPlugin instance to the plugins list).

Original comment by samuli.j...@gmail.com on 26 Feb 2014 at 11:25

GoogleCodeExporter commented 8 years ago

Original comment by samuli.j...@gmail.com on 20 Jan 2015 at 11:52