Skip to content

Make the barcharts clickable #56

Open

Description

@Avsecz
No description provided.

Activity

  1. krrome commented on Mar 13, 2018

    @krrome
    Contributor

    I think it would be possible the following way:
    Enable parsing the search sequence from an URL GET-style request in javascript, e.g.: http://kipoi.org/groups/?s=tensorflow
    This could be parsed by a javascript function that is triggered by e.g. $( document ).ready() in jquery which then puts that in the search bar and triggers the search.

    The barcharts can then generate the URL simply by writing the GET request URL

  2. zupan commented on Mar 15, 2018

    @zupan
    Contributor

    @krrome you are right. DataTables library allows entering the pre-search string that is used to filter down the result set when initializing table on page load.

    Just the JS logic of reading from and updating the URL is needed and then we have a solution allowing to link to arbitrary subset and also automatically generating reflecting URL for any search query.

  3. krrome commented on Mar 15, 2018

    @krrome
    Contributor

    Perhaps this is useful, but maybe an overkill as we don't need full mapping/parsing of a get-request: https://stackoverflow.com/questions/8486099/how-do-i-parse-a-url-query-parameters-in-javascript

  4. zupan commented on Mar 15, 2018

    @zupan
    Contributor

    True. There are simpler snippets made exactly for this features that we can adapt: wet-boew/wet-boew#6622 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions