Great Example.
As noted in the code section, the above will create Anchor Snippets. To create "custom" Snippets, you need to use the ProfileSnippetView Class.
CODE
//Anchor Snippets
Extends: KONtx.system.AnchorSnippetView,
//Profile Snippets
Extends: KONtx.system.ProfileSnippetView,
The pros and cons of ProfileSnippetView's
Pros
- They do not carry between device user profiles.
- They can easily be removed and then replaced using KONtx.application.setProfileSnippetViews([Array_of_snippet_Confs]);
Cons
- They do not care between device user profiles.
Hope this helps you work with Snippets!