src_js/iconolab-bundle/src/components/collectionhome/tabselector/TabSelector.vue
author durandn
Thu, 06 Oct 2016 15:07:50 +0200
changeset 212 1c7cce196665
permissions -rw-r--r--
Added complete_description attribute to Collection for homepage #12 + Vue.js components to handle display and sart to harmonize javascript

<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>