Index

src/utils/utils.module.ts

ANIMATION_FRAME_SERVICE_SINGLETON_PROVIDER_FACTORY
ANIMATION_FRAME_SERVICE_SINGLETON_PROVIDER_FACTORY(parentService: AnimationFrameServiceSingleton, ngZone: NgZone)
Parameters :
Name Type Optional
parentService AnimationFrameServiceSingleton No
ngZone NgZone No
DOCUMENT_SERVICE_PROVIDER_FACTORY
DOCUMENT_SERVICE_PROVIDER_FACTORY(parentService: DocumentService)
Parameters :
Name Type Optional
parentService DocumentService No

src/utils/utils.ts

clone
clone(obj)
Parameters :
Name Optional
obj No
closestAttr
closestAttr(s, t, element)
Parameters :
Name Optional
s No
t No
element No
matchesAttr
matchesAttr(el, attr, val)
Parameters :
Name Optional
el No
attr No
val No

src/common/tab.service.ts

cycleTabs
cycleTabs(event, element)
Parameters :
Name Optional
event No
element No
focusFirstFocusableElement
focusFirstFocusableElement(list)
Parameters :
Name Optional
list No
focusLastFocusableElement
focusLastFocusableElement(list)
Parameters :
Name Optional
list No
getFocusElementList
getFocusElementList(element, selector)
Parameters :
Name Optional Default value
element No
selector No tabbableSelector
isElementFocused
isElementFocused(event, element)
Parameters :
Name Optional
event No
element No
isFocusInFirstItem
isFocusInFirstItem(event, list)
Parameters :
Name Optional
event No
list No
isFocusInLastItem
isFocusInLastItem(event, list)
Parameters :
Name Optional
event No
list No
isVisible
isVisible(element)
Parameters :
Name Optional
element No

src/experimental/experimental.module.ts

EXPERIMENTAL_SERVICE_PROVIDER_FACTORY
EXPERIMENTAL_SERVICE_PROVIDER_FACTORY(parentService: ExperimentalService)
Parameters :
Name Type Optional
parentService ExperimentalService No

src/utils/a11y.ts

findNextElem
findNextElem(target)
Parameters :
Name Optional
target No
findPrevElem
findPrevElem(target)
Parameters :
Name Optional
target No
findSiblingElem
findSiblingElem(target, direction)
Parameters :
Name Optional
target No
direction No
focusNextElem
focusNextElem(elem, rootElem: null)
Parameters :
Name Type Optional Default value
elem No
rootElem null No null
focusNextTree
focusNextTree(elem, rootElem: null)
Parameters :
Name Type Optional Default value
elem No
rootElem null No null
focusPrevElem
focusPrevElem(elem, parentRef: null)
Parameters :
Name Type Optional Default value
elem No
parentRef null No null
HcModeChecker
HcModeChecker()

src/utils/window-tools.ts

getScrollbarWidth
getScrollbarWidth()

src/i18n/i18n.module.ts

I18N_SERVICE_PROVIDER_FACTORY
I18N_SERVICE_PROVIDER_FACTORY(parentService: I18n)
Parameters :
Name Type Optional
parentService I18n No

src/icon/icon.module.ts

ICON_SERVICE_PROVIDER_FACTORY
ICON_SERVICE_PROVIDER_FACTORY(parentService: IconService)
Parameters :
Name Type Optional
parentService IconService No

src/exported-tests/component-tests.ts

isObject
isObject(val)
Parameters :
Name Optional
val No

src/placeholder/placeholder.module.ts

PLACEHOLDER_SERVICE_PROVIDER_FACTORY
PLACEHOLDER_SERVICE_PROVIDER_FACTORY(parentService: PlaceholderService)
Parameters :
Name Type Optional
parentService PlaceholderService No

src/common/utils.ts

range
range(stop: number, start: number, step: number)

Does what python's range function does, with a slightly different signature because of Typescript limitations.

Useful for numbered loops in angular templates, since we can do a normal for loop.

Parameters :
Name Type Optional Default value Description
stop number No

Generate numbers up to, but not including this number

start number No 0

Starting number of the sequence

step number No 1

Difference between each number in the sequence

src/dropdown/dropdowntools.ts

watchFocusJump
watchFocusJump(target: HTMLElement, elements)

returns an observable bound to keydown events that filters to a single element where the first letter of it's textContent matches the key pressed

Parameters :
Name Type Optional Description
target HTMLElement No

element to watch

elements No

elements to search

Returns : Observable<HTMLElement>

results matching ""

    No results matching ""