nl_tokens: A Table requires a definition to operate upon . The table definition requires a url for requesting data and an array of cols ( column definitions ) . An object in the cols array requires a headerLabel dataProperty and a percentage width . The Table may also receive a sortColIndex which adds required fields to the cols objects of sortDirection ( ascending / descending ) and dataType ( string number percent time or status ) . The table definition may also include a pagination object with two required properties ( cursor - the starting index and size - number of lines per page ) .
pl_tokens: function ( id , definition , dataFormatter ) { this . id = id ; this . url = definition . url ; this . cols = definition . cols ; this . sortColIndex = <mask> . sortColIndex ; this . pagination = definition . pagination ; this . cursor = definition . cursor ; this . rowClick = definition . rowClick ; this . advancedFilters = definition . advancedFilters ; this . data = null ; this . filteredData = null ; this . displayedData = null ; this . dataCount = null ; this . dataFormatter = dataFormatter ; this . selectedItems = { } ; this . selectDataProperty = _ . result ( _ . find ( this . cols , { 'dataType' : 'select' } ) , 'dataProperty' ) ; }