Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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
    emma-uxrepublic
    @emma-uxrepublic
    Hello Marius
    yeah I know but we are working with Salvattore and we were forced to call the script ourselves. We prevented it to call itself . With angular it's a little touchy.... also we have to filter items and reload salvattore after. But anyway thank you we will try to use those commands, maybe it will work
    Marius Rumpf
    @MariusRumpf
    @emma-uxrepublic You can find the methods we provide in the README.md under Methods
    Martin Jinda
    @martinjinda
    Hi guys, have you discuss about split two "blocks" into only one block, but still with 2 blocks width? Everything in 3 columns layout.
    Corey Zev
    @coreyzev
    anyone know what kind of browser support Salvattore has?
    found it
    arizona2014
    @arizona2014
    hello everybody ... I repost the question emma asked cause we didnt found any solution.
    So we include in our Angular controller a function called salvattore() which we call when we load the datas into our app. It doesnt create any #grid element. But at least the datas are well formated in html/css formatted blocks and arranged by columns.
    The problem arise when we try to apply a filter on the datas, because the AngularJs filter does its job, filtering accordingly to the filter criteria, but the salvattore() function hides all the blocks.
    So now I may ask what is the best approach for including salvattore in AngularJS in order to filter elements, and avoid problems like ours ?
    aesnyahsan
    @aesnyahsan
    is there any NPM install or BOWER install for salvattore?
    found it on npm.com :)
    Marius Rumpf
    @MariusRumpf
    @aesnyahsan bower install salvattoreand npm install salvattore will work