react-inclusive-sortable-table
Advanced tools
Comparing version 0.1.1 to 0.1.3
@@ -215,3 +215,4 @@ import React, { Component } from 'react'; | ||
sortable = _props.sortable, | ||
rowHeaders = _props.rowHeaders; | ||
rowHeaders = _props.rowHeaders, | ||
className = _props.className; | ||
@@ -221,3 +222,3 @@ | ||
'div', | ||
null, | ||
{ className: className }, | ||
React.createElement( | ||
@@ -316,2 +317,3 @@ 'div', | ||
caption: PropTypes.string, | ||
className: PropTypes.string, | ||
headers: PropTypes.array.isRequired, | ||
@@ -318,0 +320,0 @@ rowHeaders: PropTypes.bool, |
@@ -220,3 +220,4 @@ 'use strict'; | ||
sortable = _props.sortable, | ||
rowHeaders = _props.rowHeaders; | ||
rowHeaders = _props.rowHeaders, | ||
className = _props.className; | ||
@@ -226,3 +227,3 @@ | ||
'div', | ||
null, | ||
{ className: className }, | ||
React__default.createElement( | ||
@@ -321,2 +322,3 @@ 'div', | ||
caption: PropTypes.string, | ||
className: PropTypes.string, | ||
headers: PropTypes.array.isRequired, | ||
@@ -323,0 +325,0 @@ rowHeaders: PropTypes.bool, |
{ | ||
"name": "react-inclusive-sortable-table", | ||
"version": "0.1.1", | ||
"version": "0.1.3", | ||
"description": "An accessible, sortable table based off of Heydon Pickering's Sortable Table from Inclusive Components.", | ||
@@ -5,0 +5,0 @@ "author": "benjamingrobertson", |
@@ -22,4 +22,43 @@ # react-inclusive-sortable-table | ||
render () { | ||
const headers = ['Site', 'Founder', 'Inception', 'URL']; | ||
const rows = [ | ||
[ | ||
'CSS Tricks', | ||
'Chris Coyier', | ||
'2007', | ||
<a href="http://css-tricks.com">http://css-tricks.com</a> | ||
], | ||
[ | ||
'Smashing Magazine', | ||
'Vitaly Friedman and Sven Lennartz', | ||
'2006', | ||
<a href="https://www.smashingmagazine.com/"> | ||
https://www.smashingmagazine.com/ | ||
</a> | ||
], | ||
[ | ||
'A List Apart', | ||
'Jeffrey Zeldman', | ||
'1998', | ||
<a href="https://alistapart.com/">https://alistapart.com/</a> | ||
], | ||
[ | ||
'codrops', | ||
'Manoela Ilic and Pedro Botelho', | ||
'2009', | ||
<a href="https://tympanus.net/codrops/"> | ||
https://tympanus.net/codrops/ | ||
</a> | ||
] | ||
]; | ||
return ( | ||
<Table /> | ||
<Table | ||
rows={rows} | ||
headers={headers} | ||
rowHeaders | ||
caption="Front end websites" | ||
sortable | ||
/> | ||
) | ||
@@ -26,0 +65,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47996
603
71