Sha256: d65db4ae8b958c0278e57e45eeb1d6c1562eabfc127baff528fa3d5b2697b904

Contents?: true

Size: 259 Bytes

Versions: 35

Compression:

Stored size: 259 Bytes

Contents

export default function createFilterStore(Alpine) {
  return {
    raw: Alpine.$persist("").as("filter-text"),
    get text() {
      return this.raw.replace(/\s/g, "").toLowerCase();
    },
    get active() {
      return this.text.length > 0;
    },
  };
}

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
lookbook-0.9.8 app/assets/lookbook/js/stores/filter.js
lookbook-0.9.7 app/assets/lookbook/js/stores/filter.js
lookbook-0.9.6 app/assets/lookbook/js/stores/filter.js
lookbook-0.9.5 app/assets/lookbook/js/stores/filter.js
lookbook-0.9.4 app/assets/lookbook/js/stores/filter.js
lookbook-0.9.3 app/assets/lookbook/js/stores/filter.js
lookbook-0.9.2 app/assets/lookbook/js/stores/filter.js
lookbook-0.9.1 app/assets/lookbook/js/stores/filter.js
lookbook-0.9.0 app/assets/lookbook/js/stores/filter.js
lookbook-0.8.3 app/assets/lookbook/js/stores/filter.js
lookbook-0.8.2 app/assets/lookbook/js/stores/filter.js
lookbook-0.8.1 app/assets/lookbook/js/stores/filter.js
lookbook-0.8.0 app/assets/lookbook/js/stores/filter.js
lookbook-0.8.0.beta.0 app/assets/lookbook/js/stores/filter.js
lookbook-0.7.4 app/assets/lookbook/js/stores/filter.js
lookbook-0.7.3 app/assets/lookbook/js/stores/filter.js
lookbook-0.7.2 app/assets/lookbook/js/stores/filter.js
lookbook-0.7.2.beta.5 app/assets/lookbook/js/stores/filter.js
lookbook-0.7.2.beta.4 app/assets/lookbook/js/stores/filter.js
lookbook-0.7.2.beta.3 app/assets/lookbook/js/stores/filter.js