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

edited March 2, 2017 in Ideas
it would be nice if there was a shorthand type reference to the snippet stuff.

 eg $Snip.getSnippet()
1
1 votes

Awaiting Review · Last Updated

Comments

  • Zach McElrathZach McElrath Principal Software Engineer Chattanooga, TN 💎💎💎
    edited March 2, 2017
    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
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!