File

src/lib/pg-components/tabs/tabs-nav.component.ts

Implements

AfterContentChecked AfterContentInit

Metadata

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(_elementRef: ElementRef, _ngZone: NgZone, _renderer: Renderer2, _dir: Directionality)
Parameters :
Name Type Optional
_elementRef ElementRef No
_ngZone NgZone No
_renderer Renderer2 No
_dir Directionality No

Inputs

Animated
Type : boolean
HideBar
Type : boolean
Position
Type : string
PositionMode
Type : TabPositionMode
selectedIndex
Type : number
ShowPagination
Type : boolean
Size
Type : string
Default value : 'default'
Type
Type : string

Methods

_alignInkBarToSelectedTab
_alignInkBarToSelectedTab()
Returns : void
_checkPaginationEnabled
_checkPaginationEnabled()
Returns : void
_checkScrollingControls
_checkScrollingControls()
Returns : void
_getLayoutDirection
_getLayoutDirection()
Returns : Direction
_getMaxScrollDistance
_getMaxScrollDistance()

Determines what is the maximum length in pixels that can be set for the scroll distance. This is equal to the difference in width between the tab list container and tab header container.

This is an expensive call that forces a layout reflow to compute box and scroll metrics and should be called sparingly.

Returns : number
_onContentChanges
_onContentChanges()
Returns : void
_scrollHeader
_scrollHeader(scrollDir: ScrollDirection)
Parameters :
Name Type Optional
scrollDir ScrollDirection No
Returns : void
_scrollToLabel
_scrollToLabel(labelIndex: number)
Parameters :
Name Type Optional
labelIndex number No
Returns : void
_updatePagination
_updatePagination()
Returns : void
_updateTabScrollPosition
_updateTabScrollPosition()
Returns : void

Properties

_disableScrollAfter
Default value : true
_disableScrollBefore
Default value : true
Public _elementRef
Type : ElementRef
_inkBar
Type : MefDevTabsInkBarDirective
Decorators :
@ViewChild(MefDevTabsInkBarDirective, {static: true})
_labelWrappers
Type : QueryList<MefDevTabLabelDirective>
Decorators :
@ContentChildren(MefDevTabLabelDirective)
_realignInkBar
Type : Subscription | null
Default value : null
_scrollDistance
Type : number
Default value : 0
_scrollDistanceChanged
Type : boolean
_selectedIndex
Type : number
Default value : 0
_selectedIndexChanged
Default value : false
_showPaginationControls
Default value : false
_tabBarExtraContent
Type : TemplateRef<void>
Decorators :
@ContentChild('tabBarExtraContent', {static: true})
_tabLabelCount
Type : number
_tabList
Type : ElementRef
Decorators :
@ViewChild('tabList', {static: true})
_tabListContainer
Type : ElementRef
Decorators :
@ViewChild('tabListContainer', {static: true})
_tabPosition
Type : string
Default value : 'top'
_tabPositionMode
Type : TabPositionMode
Default value : 'horizontal'
_type
Type : string
Default value : 'line'

Accessors

Animated
getAnimated()
setAnimated(value: boolean)
Parameters :
Name Type Optional
value boolean No
Returns : void
Position
getPosition()
setPosition(value: string)
Parameters :
Name Type Optional
value string No
Returns : void
HideBar
getHideBar()
setHideBar(value: boolean)
Parameters :
Name Type Optional
value boolean No
Returns : void
Type
getType()
setType(value: string)
Parameters :
Name Type Optional
value string No
Returns : void
ShowPagination
getShowPagination()
setShowPagination(value: boolean)
Parameters :
Name Type Optional
value boolean No
Returns : void
PositionMode
getPositionMode()
setPositionMode(value: TabPositionMode)
Parameters :
Name Type Optional
value TabPositionMode No
Returns : void
selectedIndex
getselectedIndex()
setselectedIndex(value: number)
Parameters :
Name Type Optional
value number No
Returns : void
scrollDistance
getscrollDistance()
setscrollDistance(v: number)

Sets the distance in pixels that the tab header should be transformed in the X-axis.

Parameters :
Name Type Optional
v number No
Returns : void
viewWidthHeightPix
getviewWidthHeightPix()
tabListScrollWidthHeightPix
gettabListScrollWidthHeightPix()
elementRefOffSetWidthHeight
getelementRefOffSetWidthHeight()

results matching ""

    No results matching ""