Building UIs with Wijmo
暫譯: 使用 Wijmo 建立使用者介面
Yuguang Zhang
- 出版商: Packt Publishing
- 出版日期: 2013-07-26
- 售價: $1,450
- 貴賓價: 9.5 折 $1,378
- 語言: 英文
- 頁數: 116
- 裝訂: Paperback
- ISBN: 1849696063
- ISBN-13: 9781849696067
海外代購書籍(需單獨結帳)
相關主題
商品描述
Wijmo lets you use widgets on your websites for more flexibility and ease of use in the user interface. This book shows you how with a refreshingly logical and example-led approach that makes learning a pleasure.
Overview
- Learn to configure Wijmo components for common usage scenarios
- Build adaptive websites that work on desktops and mobile devices
- Integrate Wijmo with Knockout to develop real-time applications
In Detail
Until recently, writing applications using JavaS cript and HTML was difficult, because developers had to make the user interface by themselves; however, this started changing with the introduction of JavaScript libraries such as jQuery, jQuery UI, and KnockoutJS. An extension of jQuery UI, Wijmo adds features and widgets on top of jQuery UI and makes it easier to add user interface widgets to HTML documents.
Building UIs with Wijmo gives you a tour of what Wijmo offers at a glance. With code recipes and well-explained examples, you will be able to use Wijmo in no time. The book gives details on options not explained in the documentation and helps you avoid those that don't work. The examples only feature the necessary code, with recommendations and best practices.
This book introduces Wijmo, grouping widgets by their common application area or usage. It walks the user through the features of the dialog widget with examples as an introduction to the library. Then, widgets for forms, images, tootips, and other topics are explored.
Features only available in the Wijmo dialog widget compared to the jQuery UI widget are thoroughly explained with examples. Common form components such as checkboxes, dropdowns, and inputs have Wijmo counterparts which keep the theme consistent and add functionalities. When Wijmo is used with Knockout, the UI automatically refreshes when the data changes. This book takes it further with WebSockets for two way communication between the server and client. With Building UIs with Wijmo, you will learn all the common web development components in Wijmo. You will get started using Wijmo in no time.
What you will learn from this book
- Set up Wijmo for development and production
- Change the Dialog widget's appearance
- Replace form components with widgets
- Autoplay images with the Carousel widget
- Create a LightBox widget and customize its buttons
- Play videos in the Gallery widget
- Fix the appearance of the InputDate widget
- Program real-time applications with declarative bindings in the MVVM style
Approach
Written with an example-based approach, Building UIs with Wijmo leads you step by step through the implementation and customization of each library component and its associated resources. Reference tables of each configuration option, method, and event for each component are provided, alongside detailed explanations of how each widget is used.
Who this book is written for
Building UIs with Wijmo is targeted at readers who are familiar with HTML, CSS, JavaScript, and jQuery, and have a basic understanding of web development. Although knowledge of jQuery UI is not mandatory, it would be a bonus as it is quite similar to Wijmo. Only the last chapter of the book on extending Wijmo requires advanced CSS and JavaScript knowledge.
商品描述(中文翻譯)
Wijmo 讓您在網站上使用小工具,以提高用戶界面的靈活性和易用性。本書以清晰邏輯和示例為主的方式展示了如何使用這些功能,讓學習變得愉快。
概述
- 學習如何配置 Wijmo 組件以應對常見使用場景
- 建立適應性網站,能在桌面和移動設備上運行
- 將 Wijmo 與 Knockout 整合,開發實時應用程序
詳細內容
直到最近,使用 JavaScript 和 HTML 編寫應用程序是困難的,因為開發者必須自己構建用戶界面;然而,隨著 jQuery、jQuery UI 和 KnockoutJS 等 JavaScript 庫的引入,這一情況開始改變。Wijmo 是 jQuery UI 的擴展,為 jQuery UI 增加了功能和小工具,使得將用戶界面小工具添加到 HTML 文檔變得更加容易。
使用 Wijmo 構建用戶界面讓您一目了然地了解 Wijmo 提供的功能。通過代碼示例和清晰的解釋,您將能夠迅速使用 Wijmo。本書詳細介紹了文檔中未解釋的選項,並幫助您避免那些無法正常工作的選項。示例僅包含必要的代碼,並提供建議和最佳實踐。
本書介紹了 Wijmo,根據小工具的常見應用領域或使用方式進行分組。它通過示例引導用戶了解對話框小工具的功能,作為對該庫的介紹。然後,將探索表單、小圖片、提示框和其他主題的小工具。
與 jQuery UI 小工具相比,僅在 Wijmo 對話框小工具中可用的功能將通過示例進行詳細解釋。常見的表單組件,如複選框、下拉選單和輸入框,擁有 Wijmo 的對應組件,保持主題一致並增加功能。當 Wijmo 與 Knockout 一起使用時,當數據變更時,UI 會自動刷新。本書進一步介紹了 WebSockets,以實現伺服器和客戶端之間的雙向通信。通過《使用 Wijmo 構建用戶界面》,您將學習到 Wijmo 中所有常見的網頁開發組件。您將能夠迅速開始使用 Wijmo。
您將從本書中學到的內容
- 設置 Wijmo 以進行開發和生產
- 更改對話框小工具的外觀
- 用小工具替換表單組件
- 使用輪播小工具自動播放圖片
- 創建 LightBox 小工具並自定義其按鈕
- 在畫廊小工具中播放視頻
- 修正 InputDate 小工具的外觀
- 使用 MVVM 風格的聲明式綁定編程實時應用程序
方法
《使用 Wijmo 構建用戶界面》採用基於示例的方法,逐步引導您實現和自定義每個庫組件及其相關資源。提供每個組件的每個配置選項、方法和事件的參考表,並詳細解釋每個小工具的使用方式。
本書的讀者對象
《使用 Wijmo 構建用戶界面》針對熟悉 HTML、CSS、JavaScript 和 jQuery 的讀者,並對網頁開發有基本了解。雖然不必具備 jQuery UI 的知識,但如果有的話會是加分項,因為它與 Wijmo 非常相似。本書最後一章關於擴展 Wijmo 的內容需要較高的 CSS 和 JavaScript 知識。