0.1.1 [BREAKING]
Backwards Incompatible Changes
Icons are no longer specified by default (#74)
import React from 'react'
import ReactDOM from 'react-dom'
import ObjectList from 'react-object-list'
import {FontAwesome} from 'react-object-list/icons'
var mount = document.querySelectorAll('div.browser-mount');
ReactDOM.render(
<ObjectList
icons={FontAwesome(4)}
/>,
mount[0]
);
or your own icons by specifying as so:
<ObjectList
icons={{
OptionalFields: <i className="list" />,
Favourites: <i className="heart" />,
RemoveFavourite: <i className="trash" />,
RemoveFilter: <i className="minus-circle" />,
DropdownOpen: <i className="caret-down" />,
DropdownClose: <i className="caret-up" />,
SortAsc: <i className="caret-up" />,
SortDesc: <i className="caret-down" />,
Unsorted: <i className="sort" />,
Loading: <i className="circle-notch spin" />,
CheckboxChecked: <i className="check-square" />,
CheckboxUnchecked: <i className="square" />,
}}
/>
Unspecified icons will not show (excl. RemoveFavourite, SortAsc, SortDesc, CheckboxChecked, CheckboxUnchecked, RemoveFilter).