Skip to main content

And would the syntax be as follows?

skuid.snippet.registerSnippet({
   ‘snippetName1’ : function (),
   ‘snippetName2’ : function ()
})

No, but it’s a good idea. You could implement this yourself with a little code:

var snippets = {
   ‘snippetName1’: function() { … },
   ‘snippetName2’: function() { … }
};

skuid.$.each(snippets,function(name,func){ skuid.snippet.registerSnippet(name,func); });


nice!