helpers

  • property

{Object<String,can.Mustache.helper(arg..., options)>}

 

Helper functions used with the component's template.

Object<String,can.Mustache.helper(arg..., options)>

An object of can.Mustache helper names and methods. The helpers are only available within the component's template and source html. The helper's are always called back with this as the scope.

Use

can.Component's helper object lets you provide helper functions that are localized to the component's template. The following example uses an isSelected helper to render content for selected items. Click one of the following libraries to toggle them within the selected array.