if you're adding photos from an ajax call, that's what works for me
emma-uxrepublic
@emma-uxrepublic
I'm not adding photos at all =)
just using it on some list items
=)
so you say I just need to call registrerGrid function ?
that's all ?
Joel Glovacki
@saetia
but they are added dynamically?
emma-uxrepublic
@emma-uxrepublic
they will be from a Json file
Joel Glovacki
@saetia
yeah, then you'll need to replace the html of your container div with the new content before calling registerGrid on it
or it will keep around the empty columns that are created when you initialize an empty grid
emma-uxrepublic
@emma-uxrepublic
so I still need to call salvattore.js on my hmtl file
then in my script I should call registrerGrid()
and that's it, it will load even with angular ?
Ok i'll be careful to replace the container
Joel Glovacki
@saetia
yeah, because when you add the data-columns attribute to your source file, sal.js will automatically do its thing
emma-uxrepublic
@emma-uxrepublic
OK
I'll try this
thank you a lot for your help
Joel Glovacki
@saetia
also make sure that you have your media queries in a .css file or they won't work
emma-uxrepublic
@emma-uxrepublic
my mediaqueries worked very well before passing the project in angular
_
Joel Glovacki
@saetia
meaning, don't have them inline in a <style> block
emma-uxrepublic
@emma-uxrepublic
so I guess it will still work
Oh yes of course
this is a very bad practice ^^
=)
Good to have that chat
thanks again ^^
I'll tell you if it worked
emma-uxrepublic
@emma-uxrepublic
hello
So I've tried to call it like you said but it's not working
emma-uxrepublic
@emma-uxrepublic
It's partially working in fact
salvottore.registerGrid($('.grid)[0]);
salvattore is generating it's class well
but my content is not here
maybe I've forgotten something
Do you have an idea please ?
emma-uxrepublic
@emma-uxrepublic
you were talking about empty columns yesterday
I have that exact problem
but you are talking about "adding the new content"
what's "NEW" content ? I don't understand
I'm trying to initialize salvattore for the first time in my html page
=)
thank you
I have an angular loop that's generating the content from a JSon file
Marius Rumpf
@MariusRumpf
Hey guys, I just published a new version with all the bugfixes included from the last months. Feel free to check it out
Marius Rumpf
@MariusRumpf
@emma-uxrepublic The script is calling itself, there should be nothing left for you todo except just including the script file from salvattore. It checks your html and css then and creates a grid with the elements from it. saetia is expecting you to start with an empty container for your elements or even not a container. You can register the new container to use salvattore with the registerGrid command. If you want to add elements to your grid container you can use the appendElementscommand