jQuery.fn.evolutionFeature
This plugin supports rendering a feature toggle link that opens the create feature modal.
Usage
$('SELECTOR').evolutionFeature(options)
where 'SELECTOR' is a span.
Options
contentId: (string) content IDcontentTypeId: (string) content type IDtypeId: (string) feature type IDpanelUrl: (string) url to open features explicit panelcontentTypeName: (string) the name of the content type- 
initialState: (boolean) content is featured- default 
false 
 - default 
 - 
editFeatureText: Label for the edit feature link.{content_type_name}is replaced with the content's type name.- default 
'Edit {content_type_name} feature' 
 - default 
 - 
addFeatureText: Label for the add feature link.{content_type_name}is replaced with the content's type name.- default 
'Feature {content_type_name}' 
 - default 
 
Example
Given the following span to contain a feature control:
<span id="featureControl"></span>
The following will initialize a feature control, using defaults for most options
var featureControl = $('#featureControl');
featureControl.evolutionFeature({
    initialState: true,  // content is featured
    contentId: 'C512D1A1-ED6C-442D-BC9d-3587CD711D35',
    contentTypeId: 'F7D226AB-D59F-475C-9D22-4A79E3F0EC07',
    contentTypeName: 'Blog Post',
});