_tagsForProperty
Show all the Tags that are defined for this Property --
Function
Thing Type -> Thing Type._tagsForProperty -> Thing Type
- Receives -- Thing Type
- A Tag Property (if it is not in the defining context)
: Defining Context (optional) : A Tag Property
- Produces
- All of the tags used for that Property in that Space.
_tagsForProperty can be used on any Property whose Type is Tag Set. It produces a list of all of the
tags that have been used in that Property so far.
Typically, you then feed the results of this to _tagRefs, to get the Things that use that Tag. For example,
if I had a list of Wines, using a Tag Set Property giving its "Wine Color", I could say:
[[Wine Color._tagsForProperty -> ""* ____: [[_tagRefs -> _commas]]""]]
to produce a list like:
- Red: Pinot Noir, Shiraz
- White: Pinot Gris, Chardonnay
ADVANCED: It is legal to use this with a received Property, instead of using the dot syntax. But remember
that it must be applied to the Property itself, so you might have to use _self to get the right results,
like this:
[[Wine Color._self -> _tagsForProperty -> ""* ____: [[_tagRefs -> _commas]]""]]
In general, you only want to receive the Property like this if you are passing it into a Function.