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