Sha256: b863980a5c0d4f3eef0ff3ac6d1d2e5a53d0f901b433c58d5517ba15f8b5264c
Contents?: true
Size: 780 Bytes
Versions: 4
Compression:
Stored size: 780 Bytes
Contents
# frozen_string_literal: true module Playbook module PbFilter class Filter include Playbook::Props partial "pb_filter/filter" prop :filters, type: Playbook::Props::HashArray, default: [{name: ''}] prop :sort_menu, type: Playbook::Props::HashArray, default: [{}] prop :results, type: Playbook::Props::Numeric prop :template, type: Playbook::Props::Enum, values: %w[default single], default: "default" def classname generate_classname("pb_filter_kit") end def sort_icon(direction) case direction when "asc" "sort-amount-up" when "des" "sort-amount-down" else "" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems