- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 33字
- 2021-07-02 19:57:22
Hiding the More button
Once theAboutsection has been expanded, we want to hide theMorebutton as it's no longer needed. We can use thev-ifdirective to achieve this in conjunction with thecontractedproperty.
index.html:
<button v-if="contracted" class="more" v-on:click="contracted = false">
+ More
</button>
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- 計算機網絡
- Extending Jenkins
- Reporting with Visual Studio and Crystal Reports
- Mastering Ember.js
- PHP基礎案例教程
- Programming ArcGIS 10.1 with Python Cookbook
- Spring實戰(第5版)
- Python數據挖掘與機器學習實戰
- 利用Python進行數據分析
- Oracle數據庫編程經典300例
- Getting Started with React VR
- 精通Spring:Java Web開發與Spring Boot高級功能
- Visual C++開發寶典
- Unity 3D UI Essentials