Sha256: 860ee80a873ee26d6ef5139973ca62c5c954e83f799e04814557dc87cab32162

Contents?: true

Size: 1.01 KB

Versions: 19

Compression:

Stored size: 1.01 KB

Contents

-#.filter.ui.wrap.button
= reveal :filter, id, :class => 'ui compact button filter' do
  - if @filter
    - filter_values = Hash[*@filter.split(";;").collect{|f| f.split("~")}.flatten]
  - else
    - filter_values = {}

  .filters()
    = action_parameters nil, :class => 'filter_controls' do
      - if header
        - header.each do |field|
          - input field, :string, "Filter for #{ field }", filter_values[field]
      - else
        NO filters

  :markdown
    Filters can be specified in several ways:

      - *String of text*: perfect match (e.g. `Cancer`)
      - *Regular expression*: flexible match (e.g. `/(bladder|breast)\s+cancer/i`)
      - *Numeric comparison*: lower of grater than (e.g. `< 0.1` or `>= 2`)
      - *Names*: for entities with names, such as genes or pathways; regular expression accepted (e.g. `:name: SF3B1` or `:name: /CDK\d/`)
      - *Length*: for lists (e.g. `:length: > 2`)
      - *Negation*: Any of the rules above can be negated by prepending the `!` character (e.g. `!:name:/^IG/`)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rbbt-rest-1.7.20 share/views/partials/table/filters.haml
rbbt-rest-1.7.19 share/views/partials/table/filters.haml
rbbt-rest-1.7.18 share/views/partials/table/filters.haml
rbbt-rest-1.7.17 share/views/partials/table/filters.haml
rbbt-rest-1.7.16 share/views/partials/table/filters.haml
rbbt-rest-1.7.15 share/views/partials/table/filters.haml
rbbt-rest-1.7.14 share/views/partials/table/filters.haml
rbbt-rest-1.7.13 share/views/partials/table/filters.haml
rbbt-rest-1.7.12 share/views/partials/table/filters.haml
rbbt-rest-1.7.11 share/views/partials/table/filters.haml
rbbt-rest-1.7.10 share/views/partials/table/filters.haml
rbbt-rest-1.7.9 share/views/partials/table/filters.haml
rbbt-rest-1.7.8 share/views/partials/table/filters.haml
rbbt-rest-1.7.7 share/views/partials/table/filters.haml
rbbt-rest-1.7.6 share/views/partials/table/filters.haml
rbbt-rest-1.7.5 share/views/partials/table/filters.haml
rbbt-rest-1.7.4 share/views/partials/table/filters.haml
rbbt-rest-1.7.3 share/views/partials/table/filters.haml
rbbt-rest-1.7.2 share/views/partials/table/filters.haml