#plugins.core.tangent.manager.named

Provides common functions for 'named' Tangent nodes

Tables with named in it's metatable chain will have name methods added as described below.


#API Overview

Functions - API calls offered directly by the extension

Constructors - API calls which return an object, typically one that offers API methods

Fields - Variables which can only be accessed from an object returned by a constructor

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Functions

Signatureplugins.core.tangent.manager.named.is(thing) -> boolean
TypeFunction
DescriptionCheck if the thing is a named table.
Parameters
  • thing - The thing to check.
Returns
  • true if it is `named.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 238

Signatureplugins.core.tangent.manager.named.xml(thing) -> cp.web.xml
TypeFunction
DescriptionReturns the xml configuration for the Action.
Parameters
  • thing - The thing to retrieve the names from.
Returns
  • The xml for the Action.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 205

#Constructors

Signatureplugins.core.tangent.manager.named(id, name, parent) -> named
TypeConstructor
DescriptionCreates a new named instance, with the specified base name.
Parameters
  • id - the unique ID for the value.
  • name - The base name of the
  • parent - the parent
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 24

#Fields

Signatureplugins.core.tangent.manager.named.active <cp.prop: boolean; read-only>
TypeField
DescriptionIndicates if the parameter is active. It will only be active if
NotesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 48

Signatureplugins.core.tangent.manager.named.enabled <cp.prop: boolean>
TypeField
DescriptionIndicates if the parameter is enabled.
NotesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 41

#Methods

Signatureplugins.core.tangent.manager.named:controls()
TypeMethod
DescriptionReturns the controls the parameter belongs to.
Parameters
  • None
Returns
  • The controls, or nil if not specified.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 83

Signatureplugins.core.tangent.manager.named:name(value) -> string | self
TypeMethod
DescriptionGets or sets the full name.
Parameters
  • value - The new name value.
Returns
  • The current value, or self if a new value was provided.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 133

Signatureplugins.core.tangent.manager.named:nameX(value) -> string | self
TypeMethod
DescriptionSets the name X, where X is a number as defined when the named was created.
Parameters
  • value - The new name value.
Returns
  • The current value, or self if a new value was provided.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 170

Signatureplugins.core.tangent.manager.named:parent() -> group | controls
TypeMethod
DescriptionReturns the group or controls that contains this parameter.
Parameters
  • None
Returns
  • The parent.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 57

Signatureplugins.core.tangent.manager.named:tangent() -> hs.tangent
TypeMethod
DescriptionThe Tangent Hub connection for this value, from the parent.
Parameters
  • None
Returns
  • The hs.tangent, if available.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/named.lua line 70