API Docs for: 0.25.0
Show:

TaggableMixin Class

Extends Ember.Mixin
Module: mixins
Parent Module: ember-osf

Controller mixin that implements basic tagging functionality. Uses the model defined in the model hook.

Item Index

Methods

addATag

(
  • model
  • tag
)

Appends a tag to the current array of tags on the resource. Copies current list of tags, appends new tag to copy, and then sets tags on the resource as the modified copy.

Parameters:

  • model DS.Model

    A model instance that supports tags functionality

  • tag String

    New tag to be added to list.

apply

(
  • obj
)
private

Parameters:

Returns:

applied object

detect

(
  • obj
)
Boolean private

Parameters:

Returns:

removeATag

(
  • model
  • tag
)

Removes a tag from the current array of tags on the resource.

Parameters:

  • model DS.Model

    A model instance that supports tags functionality

  • tag String

    Tag to be removed from list.

reopen

(
  • arguments
)
private

Parameters: