/*global chrome*/ import React from 'react'; import { DataTable } from 'primereact/datatable'; import { Column } from 'primereact/column'; class App extends React.Component { /* Open port on popup file */ port = chrome.runtime.connect({ name: "bookmarkArranger" }); getBookMarks = () => { this.port.postMessage({ code: "getBookMarks" }); } listenMessages = () => { this.port.onMessage.addListener(message => { console.log(message) }); } componentDidMount(){ this.listenMessages(); } render(){ return (

DataTable - Sort

Enabling sortable property on a column is enough to make a column sortable. Multiple column sorting is enabled using sortMode property and used with metaKey.

Single Column

{/*

Multiple Columns

*/}
); } } export default App;