Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to store custom tags

Hierarchy

  • Tags

Index

Constructors

Methods

  • AddTagsTo(obj: any, tagsString: string): void
  • Adds tags to an object

    Parameters

    • obj: any

      defines the object to use

    • tagsString: string

      defines the tag string. The tags 'true' and 'false' are reserved and cannot be used as tags. A tag cannot start with '||', '&&', and '!'. It cannot contain whitespaces

    Returns void

  • DisableFor(obj: any): void
  • Removes tags support

    Parameters

    • obj: any

      defines the object to use

    Returns void

  • EnableFor(obj: any): void
  • Adds support for tags on the given object

    Parameters

    • obj: any

      defines the object to use

    Returns void

  • GetTags(obj: any, asString?: boolean): any
  • Gets the tags available on a given object

    Parameters

    • obj: any

      defines the object to use

    • Optional asString: boolean

      defines if the tags must be returned as a string instead of an array of strings

    Returns any

    the tags

  • HasTags(obj: any): boolean
  • Gets a boolean indicating if the given object has tags

    Parameters

    • obj: any

      defines the object to use

    Returns boolean

    a boolean

  • MatchesQuery(obj: any, tagsQuery: string): boolean
  • Defines if tags hosted on an object match a given query

    Parameters

    • obj: any

      defines the object to use

    • tagsQuery: string

      defines the tag query

    Returns boolean

    a boolean

  • RemoveTagsFrom(obj: any, tagsString: string): void
  • Removes specific tags from a specific object

    Parameters

    • obj: any

      defines the object to use

    • tagsString: string

      defines the tags to remove

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme