There should be shorthand for the snippet methods similar to what there is for model stuff.

  • 1
  • Idea
  • Updated 3 years ago
it would be nice if there was a shorthand type reference to the snippet stuff.

 eg $Snip.getSnippet()
Photo of Jerry


  • 1,150 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 52,236 Points 50k badge 2x thumb
Jerry, in your code you can define your own shortcuts very quickly like this:

var $Snip = skuid.snippet;

$Snip.register('AddNumbers',function(a,b){return a+b;});
$Snip.get('AddNumbers')(1,2); --> 3