Last active
May 30, 2018 05:21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var renderFunctions = [ | |
function(item, rowIndex, offset){return offset + rowIndex + 1;}, | |
function(item){ | |
return <a target="_blank" href={item.a}>{item.b}</a> | |
}, | |
function(item){return item.c} | |
]; | |
var tableHeaders = ["S.No", "Header 1", "Header 2"]; | |
var items = [{a: "X", b: "Y", c: "Z"}]; | |
<GeneralisedTable | |
noDataPlaceholderText="No data found" | |
doPagination={false} | |
tableData={items} | |
attributeRenderFunctions={renderFunctions} | |
tableHeaders={tableHeaders} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment