-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Departments list usability #82
Comments
Survey JS Allows Custom Widgets we can probably leverage something like select2 https://surveyjs.io/Examples/Library/?id=custom-widget-select2&platform=jQuery&theme=default |
Also related #81 |
Was poking at this a bit, it might be easier to grab the csv file(client side) via jquery, then convert the csv into an array using jquery-csv, then feed the array contents into the choices section of the select2 json survey file. from a client side though there are some issues 👍
was doing something like below, in plunker
Will investigate doing this server side, but node.js is new for me and my janky web coding skills |
@KingBain I don't think server side is an option at the moment, we'd have to chat with the open canada folks to see if we can run a nodejs server somewhere. At the moment this app is fully client side, we are leveraging the static site functionality of GitHub Pages. Also instead of using JQuery to grab the data please look into either the Fetch API or a tool like Axios. https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API You can see the fetch API in use here https://github.com/esdc-devx/itsg33-yaml-explorer/blob/master/src/fetchYaml.js |
I'm confused as to which department list is the "real" one. Currently there are 4 in the repo
|
To be clear, this ticket is about the widget used to select the department list. A filter based on keyboard input like select2 offers would be a great solution. This ticket is not about changing the data source used to populate the dropdown. |
The branch 82-departments-list tried to implement the select2 widget, but it's not working. The documentation may be wrong, or we may be missing something... |
There are more than a hundred departments listed in the list. We need a better way of displaying for the users to choose one.
The text was updated successfully, but these errors were encountered: