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. Helpers are always called back with this as the viewModel.

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.