1 Reply Latest reply on Nov 10, 2013 9:30 PM by bmonnone

    edge commons, adaptive Container

    derek_coloring

      Wondering if anyone here can help me with this. I'm using the edge commons adaptive container extension like this:

       

      EC.setAdaptiveLayouts( [300, 600,1000], sym, "adaptiveContainer", function(layout, layoutSym) {

              EC.debug( "layout: "+layout, "ADAPTIVE" ); 

              EC.debug( "layoutSym: ", "ADAPTIVE", layoutSym );

              sym.setVariable("layoutSym", layoutSym); 

       

      I'm trying to use the layoutSym variable in a conditional statement to trigger certain actions dependent on what layout is being used. So, essentially...

       

      if(layoutSym == "layout: 300"){

      do something

      }

       

      But that doesn't work. Is the variable returning an object and not a string? Any help is appreciated.

      Derek