src_js/iconolab-bundle/src/components/collectionhome/tabselector/TabSelector.vue
author Alexandre Segura <mex.zktk@gmail.com>
Wed, 15 Feb 2017 16:42:06 +0100
changeset 320 81945eedc63f
parent 212 1c7cce196665
permissions -rw-r--r--
Introduce refactored components using Vue.js.

<script>

export default {
	data () {
		return {}
	},
	mounted () {
		var self=this;
	 	$(".collection-home-block:not(.selected)").hide();
	},
	methods: {
		switchTab: function(name){
		    $(".collection-home-block").removeClass("selected");
		    $(".collection-home-block").hide();
		    $(".collection-home-tab").parent().removeClass("active");
		    $("#list-"+name).show();
		    $("#tab-"+name).addClass("active");
		    
		}
	}
}


</script>