Skip to content

Instantly share code, notes, and snippets.

@tdreyno
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdreyno/90fdf6e9f7ca2cf4f427 to your computer and use it in GitHub Desktop.
Save tdreyno/90fdf6e9f7ca2cf4f427 to your computer and use it in GitHub Desktop.
header: {
childrenGenerator: [
{ component: Sorter, options: {
options: _ => TeamStore.getAllSorted(),
value: _ => this.state.team,
stringKey: "name",
modifier: "-large -float",
onChange: _ => this.handleTeamChange,
showAll: "Instrument" } },
{ component: Sorter, options: {
options: _ => monthDefinitions,
value: _ => monthForMoment(this.state.startDate),
stringKey: "name",
modifier: "-large -float",
onChange: _ => this.handleMonthChange } },
{ component: Sorter, options: {
options: _ => yearDefinitions,
value: _ => yearForMoment(this.state.startDate),
stringKey: "numeral",
modifier: "-large -float",
onChange: _ => this.handleYearChange } }
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment