Skip to main content
Nintex Community Menu Bar
Question

Can skuid.snippet.registerSnippet() handle multiple snippets?

  • Jul 9, 2024 7:38 PM UTC
  • 2 replies
  • 27 views
  • Translate All

Forum|alt.badge.img+18

And would the syntax be as follows?

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

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+13

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); });

Translate

Forum|alt.badge.img+18
  • Author
  • Jul 9, 2024 8:08 PM UTC

nice!

Translate