Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.21 KB

template.adoc

File metadata and controls

61 lines (43 loc) · 1.21 KB

Template

Object represent template, extends [class-netobj].

Instance attributes

autoApplyScript ⇒ String

Source of the script for automatic binding.

isAutoApplyEnabled ⇒ Boolean

Indicate if automatic binding is enabled.

isAutoRemoveEnabled ⇒ Boolean

Indicate if automatic unbinding is enabled.

version ⇒ Integer

Template version

Instance methods

applyTo(object) ⇒ void

Apply teplate on object

Table 1. Parameters

object

Object

Object this template to be applied on

removeFrom(object) ⇒ void

emplate form object

Table 2. Parameters

object

Object

Object this template to be removed form

setAutoApplyMode(enableBind, enableUnbind) ⇒ void

Set automatic bind mode for the container.

Table 3. Parameters

enableBind

Boolean

Script should be used for automatic binding.

enableUnbind

Boolean

Script should be used for automatic unbinding.

setAutoApplyScript(script) ⇒ void

Update automatic binding script source.

Table 4. Parameters

script

String

Script content.