File

core/docs/docs.service.ts

Extends

ExtensionPointWithoutStateForPlugins

Index

Properties
Methods
Accessors

Constructor

constructor(options: OptionsService, app: AppStateService, rootInjector: Injector, router: Router, plugins: PluginsResolveService)
Parameters :
Name Type Optional
options OptionsService No
app AppStateService No
rootInjector Injector No
router Router No
plugins PluginsResolveService No

Methods

get
get()
Returns : {}
getBaseUrl
getBaseUrl(uiVersion?: string | literal type)
Parameters :
Name Type Optional
uiVersion string | literal type Yes
Returns : string
getUrlWithDocsVersion
getUrlWithDocsVersion(url: string, uiVersion: string | literal type)

Takes a URL and replaces all {{ version }} placeholders with the relevant docs version (the version is derived from the app state or from the provided parameter).

Parameters :
Name Type Optional Default value Description
url string No

Any URL that contains {{ version }} placeholders.

uiVersion string | literal type No this.app.uiVersion

A version string or object, defaults to the app state version.

Returns : string

The URL with replaced {{ version }} placeholders.

getUserGuideLink
getUserGuideLink(link)
Parameters :
Name Optional
link No
Returns : any
list
list()
Returns : any
Protected setupItemsObservable
setupItemsObservable()
refresh
refresh()

Refresh the extension factories

Returns : void

Properties

Readonly DEFAULT_DOCS_BASE_URL
Type : string
Default value : 'https://www.cumulocity.com'

Default documentation URL.

factories
Type : ExtensionFactory<T>[]
Default value : []
Protected injectors
Type : Injector[]

All injectors to search for an extension.

items$
Type : Observable<T[]>
Readonly refresh$
Type : Observable<void>

Accessors

templateStr
gettemplateStr()

results matching ""

    No results matching ""