-
1. Re: Edge Commons Flexible Layout
TimJaramillo Mar 13, 2013 11:10 AM (in response to rossfranks)Hey pancreas, can you post your latest source files, with the EC Flexible Layout implemented?
-
2. Re: Edge Commons Flexible Layout
rossfranks Mar 27, 2013 5:22 PM (in response to TimJaramillo)Sorry for the delay Tim,
I got distracted by work
Here's the file...
http://dl.dropbox.com/u/5569346/EdgeCommonsFlexibleLayout.zip
-
3. Re: Edge Commons Flexible Layout
rossfranks Apr 3, 2013 6:04 PM (in response to rossfranks)Anyone?
-
4. Re: Edge Commons Flexible Layout
TimJaramillo Apr 3, 2013 6:12 PM (in response to rossfranks)Hey pancreas, you should try posing this question directly to Simon's github page. He'll probably respond directly to your Q:
https://github.com/simonwidjaja/EdgeCommons/issues?page=1&state=open
-
5. Re: Edge Commons Flexible Layout
rossfranks Apr 7, 2013 4:35 PM (in response to TimJaramillo)Thanks Tim,
done.
-
6. Re: Edge Commons Flexible Layout
simonwidjaja Apr 8, 2013 3:47 AM (in response to rossfranks)Hi PB,
you are lucky, I just had some free time and added a callback to the adaptive feature.
You can now add a function closure as 4th parameter to get a reference to the layout symbol:
EC.setAdaptiveLayouts( [600, 900], sym, "adaptiveContainer", function(layout, layoutSym) {
EC.debug( "layout: "+layout, "ADAPTIVE" );
EC.debug( "layoutSym: ", "ADAPTIVE", layoutSym );
sym.setVariable("layoutSym", layoutSym);
});
With this reference you now can control the symbol to e.g. jump to a specific page or simply play the symbol:
sym.getVariable("layoutSym").play();
I've uploaded a demo file for you to see how it works:
http://temp.trendspurt.com/AdaptiveCallbackPreview.zip
To use this extension you have to load the newest (5min young version from our brand new CDN server:
http://cdn.edgecommons.org/an/1.0.0/js/min/EdgeCommons.js
We will launch Edge Commons 1.0 with extended documentation and plenty of videos within the next 2 weeks. So feedback is appreciated!
(BTW: edgedocks.com will be the new home of Edge Commons)
Happy Coding,
Simon
-
7. Re: Edge Commons Flexible Layout
rossfranks Apr 15, 2013 9:07 PM (in response to simonwidjaja)Sorry I replied to your github site but didn't see you're reply here, so I'll repeat...
Oh wow thanks for the quick reply that's great.
Ok I tried it on my example and it's changing size but the buttons aren't working, have I set the code up for them correctly (see here http://dl.dropbox.com/u/5569346/adaptiveTest_09_04_13.zip ) ?
Sorry I'm more a graphic designer than a programmer.
-
8. Re: Edge Commons Flexible Layout
simonwidjaja Apr 16, 2013 3:18 AM (in response to rossfranks)Hi,
you are calling a function when clicking the buttons: sym.arrowBtnRt();
That function is never declared. BTW: It's bad practice to add functions directly to a symbol instance. Best practice: Define functions as variables using sym.setVariable("myFunc", function(param){CODE});
Happy Coding,
Simon
-
9. Re: Edge Commons Flexible Layout
rossfranks Apr 21, 2013 7:34 PM (in response to simonwidjaja)Sorry I'm a little lost, so how would thta look in regards to you're code.



