File

src/services/tabService/nodes/tabNode/tab-node.ts

Implements

ITabNode

Index

Properties
Accessors

Constructor

constructor(myInstance: any)
Parameters :
Name Type Optional
myInstance any No

Properties

currentInstance
Type : any
idInstance
Type : string
nextTabNode
Type : ITabNode
previousTabNode
Type : ITabNode
tabOrderInstance
Type : number

Accessors

next
getnext()
setnext(tabNode: ITabNode)
Parameters :
Name Type Optional
tabNode ITabNode No
Returns : void
previous
getprevious()
setprevious(tabNode: ITabNode)
Parameters :
Name Type Optional
tabNode ITabNode No
Returns : void
current
getcurrent()
setcurrent(currentInstance: any)
Parameters :
Name Type Optional
currentInstance any No
Returns : void
id
getid()
tabOrder
gettabOrder()
import { ITabNode } from '../../tabContracts/iTabNode';

export class TabNode implements ITabNode {
  constructor(myInstance: any) {
    this.currentInstance = myInstance;
    this.nextTabNode = null;
    this.previousTabNode = null;
    this.idInstance = this.currentInstance.model.id;
    this.tabOrderInstance = this.currentInstance.model.TabOrder || 0;
  }
  nextTabNode: ITabNode;
  previousTabNode: ITabNode;
  currentInstance: any;
  idInstance: string;
  tabOrderInstance: number;

  set next(tabNode: ITabNode) {
    this.nextTabNode = tabNode;
  }

  get next(): ITabNode {
    return this.nextTabNode;
  }

  set previous(tabNode: ITabNode) {
    this.previousTabNode = tabNode;
  }

  get previous(): ITabNode {
    return this.previousTabNode;
  }

  set current(currentInstance: any) {
    this.currentInstance = currentInstance;
  }

  get current(): any {
    return this.currentInstance;
  }

  get id(): string {
    return this.idInstance;
  }

  get tabOrder(): number {
    return this.tabOrderInstance;
  }
}

results matching ""

    No results matching ""