prodz18 / TiFlexiGrid

An Alloy Widget for creating grid layouts.
125 stars 36 forks source link

Couldn't find module #5

Closed arishanapalli closed 10 years ago

arishanapalli commented 10 years ago

Hi Pablorr18,

I am integrating TiFlexiGrid into my project.

I drag the widget folder into my application app Folder. I have Widget/tiflexgrid/controller,view,style,widget.json

for controller widget.js and gallery.js view widget.xml and gallery.xml style: widget.tss and gallery.tss

after loginWindow i want to display tiflexgrid MenuWindow.xml

<Alloy>
    <Window id="menuWin" class="MenuWindow" >
        <Require type = "widget" src = "/tiflexigrid" id="fg"/>
</Window>
</Alloy>

MenuWindow.js

$.menuWin.addEventListener('open',function(e){
    setTimeout(function(){
        $.fg.createGrid({
            columns:3,                  
            space:10,                   
            data:items,                                        
            layout:'gallery',           
            params:{
                padding:10,
                showTitle:false,
                backgroundColor: '#eee',
                gridColor: '#ccc'
            },
            width: $.menuWin.size.width 
        });
    },800); 
}); 

MenuWindow.tss

"#MenuWindow":{
    backgroundColor:'#fff',
    navBarHidden:true,
 tabBarHidden:true,
     layout:'vertical',
     exitOnClose:true
 },

Its throws an error message: Couldn't find module: alloy/widgets//tiflexigrid/controllers/widget.

Can you advice me for integrating the tiflexigrid into my application.

arishanapalli commented 10 years ago

@pablorr18 I resolved it I forgot to add "dependencies": { "tiflexigrid":"1.1" }

!!!!!