pretalx / schedule

The pretalx schedule component.
3 stars 4 forks source link

Allow narrowing by rooms/types/tracks/days #10

Open rixx opened 2 years ago

rixx commented 2 years ago

It wouldn't be all that much effort to add a prop to the schedule widget that allows users to limit the rooms or proposal types or tracks or dates being shown, and it could be very useful on embeddable widgets.

A second part to this, more optional than the first: it could also be useful to pass an input element instead of an actual list, to make flexible filters work. This part could be handled by external JavaScript, but could turn out common enough that it might be nice to include in the widget (which would add an eventlistener and update its filter lists).

Things to filter by:

shaib commented 2 weeks ago

Does the widget expose this filtering to some API? Parameters on the schedule components, or some JS on the page which can talk to it?

I have different rooms for different days. I'd like to display the two days on separate grids, so the rooms of one day don't interfere with the rooms of the other day. I don't have tracks, so I don't mind abusing tracks for this -- i.e. marking all of the sessions for each day as a separate track, if I can somehow get a pre-filtered grid.

But it seems like being able to pre-filter a schedule might also be useful more generally.

rixx commented 2 weeks ago

Once this is properly implemented, the API to limit/filter the widget will definitely be available on the widget builder page!