View Source MbtaMetro.Components.ModeSelector (MbtaMetro v0.0.7)
Summary
Functions
Select one or more modes of transit in a very visual way.
Functions
Select one or more modes of transit in a very visual way.
Attributes
field
(Phoenix.HTML.FormField
) - A form field struct retrieved from the form, for example: @form[:modes_to_show].modes
(:list
) - A list of label-value tuples. Defaults to[{"Subway", :subway}, {"Commuter Rail", :commuter_rail}, {"Bus", :bus}, {"Ferry", :ferry}]
.