Configuration
Channels Configuration
Channels are based on Shared Contexts - named objects, holding cross-app data in the form of key/value pairs. The Glue42 Channels are defined in a channels.json
file located in %LocalAppData%\Tick42\GlueDesktop\config
. It contains an array of objects, each one defining a different Channel.
Here is an example of minimal definition of two Channels - red and blue:
[
{
"name": "Red",
"meta": {
"color": "red"
}
},
{
"name": "Blue",
"meta": {
"color": "#66ABFF"
}
}
]
Property | Description |
---|---|
name |
Required. Unique ID of the Channel. |
meta |
Required. Meta data about the Channel. The minimum you must specify here is the Channel color. You can also define other meta data which will be visible to all apps using the Channel. |
color |
The Channel color, displayed on the Channel Selector UI and on each app using that Channel. Can be either an HTML color name or a hexadecimal color code. |
You can define any number of Channels in Glue42 Enterprise for your apps to use.
Here is an example of adding a custom purple Channel to the already existing list of Channels in Glue42 Enterprise:
{
"name": "Dark Purple",
"meta": {
"color": "#6400b0"
}
}
Channel Selector
To add the Channel selector to your window, set "allowChannels"
to true
in your app configuration file, under the "details"
top-level key:
{
"title": "Client List 🔗",
"type": "window",
"name": "channelsclientlist",
"icon": "https://dev-enterprise-demos.tick42.com/resources/icons/clients.ico",
"details": {
"url": "https://dev-enterprise-demos.tick42.com/client-list-portfolio-contact/#/clientlist",
"mode": "tab",
"allowChannels": true
}
}