Skip to main content
Kinetic Community

Category Model

The category object represents the Category that is being accessed. Many of the properties and methods are accessible within the bundle.

Properties

attributes

A list of Attribute objects associated to the category.

${category.attributes}

forms

A list of Form objects associated to the category.

${category.forms}

Kapp

The Kapp the form belongs to.

${category.kapp}

name

The name of the category.

${category.name}

Methods

getAttribute(name)

Returns the attribute identified by the name parameter if it exists.

${category.getAttribute(name)}

getAttributeValue(name)

Returns the value of the attribute identified by the name parameter if it exists and if the attribute only supports a single value. This is a shortcut for ${category.getAttribute(name).value} if you don’t need the entire Attribute object, or you have not tested if the attribute exists.

${category.getAttributeValue(name)}

getAttributeValues(name)

Returns a list of values of the attribute identified by the name parameter if it exists and if the attribute support multiple values. This is a shortcut for ${category.getAttribute(name).values} if you don’t need the entire Attribute object, or you have not tested if the attribute exists.

${category.getAttributeValues(name)}

hasAttribute(name)

Tests if the attribute identified by the name parameter exists. Returns true if the attribute does exist, otherwise false.

${category.hasAttribute(name)}

hasAttributeValue(name, value)

Tests if the attribute identified by the name parameter has the value identified by the value parameter. Returns true if the attribute does have the value, otherwise false.

${category.hasAttributeValue(name, value)}

Related