Applications-Nav Service
The Applications navigation section is found at the bottom of the left-hand sidebar of the Symphony client workspace. Use the applications-nav
service to create a navigation item for your application:
The following methods are available on the applications-nav
service:
add
remove
count
rename
focus
add()
Add a new navigation item to the Applications section of the left-hand sidebar:
Parameter
Type
Description
id
String
A unique id for this navigation item (must be unique across all navigation items of a given application)
Either title
or {title, icon}
String or Object
Either the title of the left navigation item as a string or an object with the keys title
and icon
where the value of title
is a string and the value of icon
is the url of a square SVG (recommended), or the url of a square png/jpg image. Recommended size is 32x32.
serviceName
String
The name of a local service implemented by your application that will be invoked when a user action is performed relating to the application navigation
Note: You must implement the select
method on your application service in order to handle clicks on the created left navigation item.
remove()
Remove an existing application navigation item:
Parameter
Type
Description
id
String
The id of the navigation item that should be removed
count()
Set the badge (notification) count on an application navigation item:
Parameter
Type
Description
id
String
The id of the navigation item that should have its count updated
count
Integer
The new badge count number. Specifying 0 will hide the badge count.
rename()
Change the title of an existing application navigation item.
Note that this only changes the title of a specific navigation item -- not to all navigation items created by the application:
Parameter
Type
Description
id
String
The id of the navigation item that should be renamed
Either title
or {title, icon}
String or Object
Either the title of the left navigation item as a string or an object with the keys title
and icon
where the value of title
is a string and the value of icon
is the url of a square SVG (recommended), or the url of a square png/jpg image. Recommended size is 32x32.
focus()
Focus an existing application navigation item:
Parameter
Type
Description
id
String
The id of the application navigation item to focus
Last updated