Touch & Sell JS API
Preparing search index...
TSCollection
Class TSCollection
Index
Properties
id
Methods
add
Contact
add
Node
get
Attribute
get
Attributes
get
Contacts
get
Node
At
get
Nodes
has
Node
insert
Node
remove
Collection
remove
Contact
remove
Node
remove
Node
At
set
Attribute
Properties
id
id
:
string
Methods
add
Contact
addContact
(
tscontact
:
TSContact
)
:
Promise
<
void
>
Parameters
tscontact
:
TSContact
Returns
Promise
<
void
>
add
Node
addNode
(
node
:
TSNode
)
:
Promise
<
void
>
Parameters
node
:
TSNode
Returns
Promise
<
void
>
get
Attribute
getAttribute
(
key
:
string
,
namespace
:
string
)
:
Promise
<
unknown
>
Parameters
key
:
string
namespace
:
string
Returns
Promise
<
unknown
>
get
Attributes
getAttributes
()
:
Promise
<
Record
<
string
,
unknown
>
>
Returns
Promise
<
Record
<
string
,
unknown
>
>
get
Contacts
getContacts
()
:
Promise
<
(
TSContact
|
null
)
[]
>
Returns
Promise
<
(
TSContact
|
null
)
[]
>
get
Node
At
getNodeAt
(
position
:
number
)
:
Promise
<
TSNode
|
null
>
Parameters
position
:
number
Returns
Promise
<
TSNode
|
null
>
get
Nodes
getNodes
()
:
Promise
<
(
TSNode
|
null
)
[]
>
Returns
Promise
<
(
TSNode
|
null
)
[]
>
has
Node
hasNode
(
tsnode
:
TSNode
)
:
Promise
<
boolean
>
Parameters
tsnode
:
TSNode
Returns
Promise
<
boolean
>
insert
Node
insertNode
(
node
:
TSNode
,
position
:
number
)
:
Promise
<
void
>
Parameters
node
:
TSNode
position
:
number
Returns
Promise
<
void
>
remove
Collection
removeCollection
(
collection
:
TSCollection
)
:
Promise
<
void
>
Parameters
collection
:
TSCollection
Returns
Promise
<
void
>
remove
Contact
removeContact
(
tscontact
:
TSContact
)
:
Promise
<
void
>
Parameters
tscontact
:
TSContact
Returns
Promise
<
void
>
remove
Node
removeNode
(
node
:
TSNode
)
:
Promise
<
void
>
Parameters
node
:
TSNode
Returns
Promise
<
void
>
remove
Node
At
removeNodeAt
(
position
:
number
)
:
Promise
<
void
>
Parameters
position
:
number
Returns
Promise
<
void
>
set
Attribute
setAttribute
(
key
:
string
,
value
:
any
,
namespace
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
value
:
any
namespace
:
string
Returns
Promise
<
void
>
Settings
Theme
OS
Light
Dark
On This Page
Properties
id
Methods
add
Contact
add
Node
get
Attribute
get
Attributes
get
Contacts
get
Node
At
get
Nodes
has
Node
insert
Node
remove
Collection
remove
Contact
remove
Node
remove
Node
At
set
Attribute
Touch & Sell JS API
Loading...