src_js/iconolab-bundle/src/components/collectionhome/tabselector/TabSelector.vue
author durandn
Thu, 06 Oct 2016 15:09:18 +0200
changeset 213 43aa7c589048
parent 212 1c7cce196665
permissions -rw-r--r--
Work on pagination: collection_home mostly, a few touches on item_detail and detail_annotations #39

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