public static void OnAfterRender(Element[] rendered) { // Layout grid everytime an image is loaded jQuery.FromElements(rendered).Find("img").Load(delegate(jQueryEvent e) { wall.fitWidth(); }); }
public static void init() { ContactCardViewModel vm = new ContactCardViewModel(); wall = new FreeWallPlugin("#freewall"); FreeWallOptions options = new FreeWallOptions(); options.selector = ".brick"; options.animate = true; options.cellW = 150; options.cellH = "auto"; options.onResize = delegate() { wall.fitWidth(); }; wall.reset(options); // Data Bind the View Model ViewBase.RegisterViewModel(vm); }