From 5ff49133fe30f9c775a97e4b34597f6130dd2ad3 Mon Sep 17 00:00:00 2001 From: Eduardo humberto Date: Thu, 1 Mar 2018 12:30:17 -0300 Subject: [PATCH] creating selectbox filter --- .../filter-types/selectbox/Selectbox.vue | 112 ++++++++++++++++++ .../selectbox/class-tainacan-selectbox.php | 4 +- src/js/main.js | 4 + 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 src/classes/filter-types/selectbox/Selectbox.vue diff --git a/src/classes/filter-types/selectbox/Selectbox.vue b/src/classes/filter-types/selectbox/Selectbox.vue new file mode 100644 index 000000000..98945c1d6 --- /dev/null +++ b/src/classes/filter-types/selectbox/Selectbox.vue @@ -0,0 +1,112 @@ + + + \ No newline at end of file diff --git a/src/classes/filter-types/selectbox/class-tainacan-selectbox.php b/src/classes/filter-types/selectbox/class-tainacan-selectbox.php index 0cb00a785..4fd43908f 100644 --- a/src/classes/filter-types/selectbox/class-tainacan-selectbox.php +++ b/src/classes/filter-types/selectbox/class-tainacan-selectbox.php @@ -19,6 +19,8 @@ class Selectbox extends Filter_Type { */ public function render( $filter ){ - return ''; + return ''; } } \ No newline at end of file diff --git a/src/js/main.js b/src/js/main.js index 7d3ad365d..a1ec44217 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -21,6 +21,7 @@ import Date from '../classes/field-types/date/Date.vue'; import Relationship from '../classes/field-types/relationship/Relationship.vue'; import FilterRange from '../classes/filter-types/range/Range.vue'; +import FilterSelectbox from '../classes/filter-types/selectbox/Selectbox.vue'; Vue.customElement('tainacan-text', Text); eventBus.registerComponent( 'tainacan-text' ); @@ -53,4 +54,7 @@ eventBus.listener(); Vue.customElement('tainacan-filter-range', FilterRange); eventFilterBus.registerComponent( 'tainacan-filter-range' ); +Vue.customElement('tainacan-filter-selectbox', FilterSelectbox); +eventFilterBus.registerComponent( 'tainacan-filter-selectbox' ); + eventFilterBus.listener();