import { Component , OnInit } from '@angular/core' ; @ Component ( { selector : 'app-colreorder-extension' , templateUrl : 'colreorder-extension.component.html' } ) export class ColreorderExtensionComponent implements OnInit { pageTitle = 'DataTables ColReorder extension' ; mdIntro = 'assets/docs/extensions/colreorder/intro.md' ; mdInstall = 'assets/docs/extensions/colreorder/installation.md' ; mdHTML = 'assets/docs/extensions/colreorder/source-html.md' ; mdTS = 'assets/docs/extensions/colreorder/source-ts.md' ; dtOptions : any = { } ; ngOnInit ( ) { this . dtOptions = { ajax : 'data/data.json' , columns : [ { title : 'No move me!' , data : 'id' } , { title : 'Try to move me!' , data : 'firstName' } , { title : 'You cannot move me! *evil laugh*' , data : 'lastName' } ] , dom : 'Rt' , colReorder : { order : [ 1 , 0 , 2 ] , fixedColumnsRight : 2 } } ; } }