dist/
. It looks like as of npm@5
we just need to rename build
to prepare
: https://github.com/npm/npm/issues/3055#issuecomment-304698029
renderControls() {
return (
<div>
<div className="pull-right">
<label className="ui-checkbox">
<input
name="toggleThing"
type="checkbox"
checked={this.props.doToggle}
onChange={() => {}}
/>
<span>Toggle</span>
</label>
</div>
</div>
);
}
render() {
const NewLayout = FullLayout({
additionalControls: this.renderControls(),
showFilter: true,
showPagination: myData.length > 100
});
return (
<Griddle
data={myData
plugins={[plugins.LocalPlugin]}
pageProperties={{ pageSize: 100 }}
components={{ Layout: NewLayout }}
>
....
}
const NewLayout = ({ Table, Pagination, Filter, SettingsWrapper }) => (
<div>
<Filter />
<Pagination />
<Table />
</div>
);
settings-box
as an component in the Layout?