src_js/iconolab-bundle/src/components/collectionhome/descriptionviewer/DescriptionViewer.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: {
        
      },
      mounted() {
          $(".collection-description-complete").hide();
      },
      methods: {
          showCompleteDescription: function(){
              $(".collection-description").hide()
              $(".collection-description-complete").show()
          },
          hideCompleteDescription: function(name){
              $(".collection-description-complete").hide()
              $(".collection-description").show()
          }
      },
}
</script>