Initial Value on Select Input

11 views
Skip to first unread message

sdc50

unread,
Nov 10, 2015, 7:03:20 PM11/10/15
to Tethys Platform
I'm trying to set an initial value on the select input gizmo. It looks like the template code for the gizmo expects an variable called initial, but the select_input options doesn't accept an parameter called "initial". Is this a bug or am I missing something?

swainn

unread,
Nov 13, 2015, 10:25:16 AM11/13/15
to Tethys Platform
Neither. It's a feature request. I don't think the select input allows for an initial value. It's a feature that was left out when it was implemented (talk to Alan Snow about that) and we never got around to adding it. If you want to add that feature, that would be great! You may be able to do it through the attributes parameter. Otherwise, you need to do it through JavaScript. I've added an issue on GitHub to add an initial value for the select input:

Scott Christensen

unread,
Nov 13, 2015, 1:18:10 PM11/13/15
to swainn, Tethys Platform
Great, Thanks. I think it would be pretty easy to add, since it looks like the template already supports it. I may be able to get to it or I'll ask Ezra to look at it.

--
You received this message because you are subscribed to a topic in the Google Groups "Tethys Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tethysplatform/ngPi97H2i6c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tethysplatfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tethysplatform/cd20b8e1-d638-41b8-a973-4453d4405f09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages