src/ui/smart-tab-folder/smart-tab-folder.component.ts
AbstractFormChild
OnInit
OnChanges
OnDestroy
AfterViewInit
selector | smart-tab-folder |
styleUrls | ./smart-tab-folder.component.css, |
templateUrl | ./smart-tab-folder.component.html |
Properties |
Methods |
Inputs |
Accessors |
constructor(http: SmartHttpService, serviceAdapter: SmartServiceAdapter, tabfolderService: SmartTabFolderRegistryService, injector: Injector, renderer: Renderer2, elementRef: ElementRef)
|
|||||||||||||||||||||
Parameters :
|
smart-object-name |
Type : string
|
smart-tab-folder-pages |
Type : string | TabFolderPageSettings[] | SmartTabFolderTab[]
|
_onTabSelect | ||||||
_onTabSelect(event: SelectEvent)
|
||||||
Parameters :
Returns :
void
|
computeTabPagePadding | |||||||||
computeTabPagePadding(padding: number, element: HTMLElement)
|
|||||||||
Parameters :
Returns :
any
|
disablePage | ||||||
disablePage(tab: number | string)
|
||||||
Parameters :
Returns :
void
|
enablePage | ||||||
enablePage(tab: number | string)
|
||||||
Parameters :
Returns :
void
|
Public handleLayoutChange | ||||||
handleLayoutChange(newLayout: literal type)
|
||||||
Parameters :
Returns :
void
|
selectPage | ||||||
selectPage(tab: number | string)
|
||||||
Parameters :
Returns :
void
|
_activeTab |
Type : number
|
Default value : 0
|
_pages |
Type : TabFolderPageSettings[]
|
contentPages |
Type : QueryList<SmartTabFolderTab>
|
Decorators :
@ContentChildren(SmartTabFolderTab)
|
height |
Type : number
|
notifiedLoading |
Default value : false
|
onTabChanged |
Type : EventEmitter<number>
|
Default value : new EventEmitter()
|
smartTabFolderPages |
Type : QueryList<ElementRef>
|
Decorators :
@ViewChildren(SmartTabFolderPageComponent, {read: ElementRef})
|
objectName | ||||||
getobjectName()
|
||||||
|
||||||
setobjectName(objectName: string)
|
||||||
Parameters :
Returns :
void
|
tabstrip | ||||
gettabstrip()
|
||||
Returns :
ElementRef
|
||||
settabstrip(kendoTabStrip)
|
||||
Parameters :
Returns :
void
|
tabStripComponent | ||||
gettabStripComponent()
|
||||
Returns :
TabStripComponent
|
||||
settabStripComponent(value)
|
||||
Parameters :
Returns :
void
|
<kendo-tabstrip
#tabstrip
(tabSelect)="_onTabSelect($event)"
[keepTabContent]="true">
<kendo-tabstrip-tab
*ngFor="let tab of pages"
[selected]="tab.selected"
[disabled]="tab.disabled">
<ng-template kendoTabTitle>
<div class="tab-title row">
<span *ngIf="!!tab.icon">
<img *ngIf="!tab.fontIcon" [src]="tab.icon">
<i *ngIf="tab.fontIcon" [class]="tab.fontIcon"></i>
</span>
{{tab.label}}
</div>
</ng-template>
<ng-template kendoTabContent>
<SmartTabFolderPage *ngIf="!tab.tabContent" [layout]="tab" [selected]="tab.selected" [key]="tab.key"></SmartTabFolderPage>
<SmartTabFolderPage *ngIf="!!tab.tabContent" [tabContent]="tab.tabContent" [selected]="tab.selected" [key]="tab.key"></SmartTabFolderPage>
</ng-template>
</kendo-tabstrip-tab>
</kendo-tabstrip>
./smart-tab-folder.component.css
::ng-deep .smart-form-row {
margin-left: 0;
margin-right: 0;
}
::ng-deep .row.tab-title {
margin-left: 0px !important;
margin-right: 0px !important;
}
::ng-deep ul.k-tabstrip-items {
z-index: 999 !important;
}
../mdi/smart-mdi.component.css
.smart-tab-header {
cursor: pointer !important
}
::ng-deep span.disabled {
color: lightgray !important;
cursor: default !important;
}
::ng-deep .k-tabstrip>.k-content {
border-color: rgba(0, 0, 0, .08) !important;
}