new (require("baja/tag/ComponentTags"))(owner)
- Description:
Tags is used to access the direct tags on a Component instance.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
owner |
baja.Component | The Component instance owner. |
Methods
contains(id) → {Boolean}
- Description:
Returns true if a Tag with the specified Id (or qname) is found.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
String | module:baja/tag/Id | The Id |
Returns:
Returns true if found.
- Type
- Boolean
get(id)
- Description:
Get the value of the Tag with the given id if it exists.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
String | module:baja/tag/Id | The Id |
Returns:
The value for the tag if it exists or else null.
getAll() → {Array.<module:baja/tag/Tag>}
- Description:
Returns a copy of the contained Tags array.
- Source:
Returns:
An array of Tag objects.
- Type
- Array.<module:baja/tag/Tag>
isEmpty() → {Boolean}
- Source:
Returns:
Returns true if there are no Tag objects.
- Type
- Boolean
isTaggableSlot(slot) → {Boolean}
- Description:
Returns true if the specified Slot is taggable.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
slot |
baja.Slot | String | The Slot (or slot name) that's tested |
Returns:
Returns true if the Slot is taggable.
- Type
- Boolean
(static) idToSlotName(id) → {String}
- Description:
Return a Slot name from the specified Id.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
String | module:baja/tag/Id | The Id or |
Returns:
The Slot Name.
- Type
- String
(static) slotNameToQname(slotName) → {String}
- Description:
Returns a qname from a Slot name.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
slotName |
String | The slot name to create the Id from. |
Returns:
- Type
- String
(static) slotToQname(slot) → {String}
- Description:
Returns a qname from a Slot.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
slot |
baja.Slot | The Slot to create the Id from. |
Returns:
- Type
- String