Yahoo! Getting started with UI Library

Source: Internet
Author: User
Introduction
Yahoo! User Interface library (Yui for short) is a tool and control library written using javascr Using Pt. It uses Dom scripts, DHTML, and Ajax to construct a web with rich interactive functions Program . Yui also contains several core CSS files. All components in Yui have been released as open source. They comply with the BSD Protocol and are free to use. You can download the complete project file from the SourceForge site, including related documents and examples.

Yui project developer's blog: Yui blog, CommunicationCommunity: Ydn-rjcr 1_pt on Yahoo! Groups.

Preparations:

1. Download Yui

The Yui project file has been published on the SourceForge site. The file contains relevant documents, examples, andCode.

Note: Yahoo does not provide a free running environment for Yui running. You need to run it on an out-of-the-box web server.

2. Add the class library file you need To Your webpage.

To use the components in Yui, you must specify the library file address of the related components in your page file. If the component depends on other components, you must use <SCR sans Pt> to specify the library file address of the dependent component.

3. Add a CSS file to the page if necessary.

Some Yui controls contain a corresponding CSS file to set the style of the control. In this case, you must use <style> to specify the address of the corresponding CSS file on the page. You can modify the corresponding CSS file to achieve the desired effect.

4. Browse related documents and Examples

Each component contains detailed API documentation and provides common examples. After learning, let's review all the APIS, so you can be aware of them. Because the quality of API understanding will affect your use of Yui.

Component Introduction

Yui components are divided into two categories: Toolkit and control library

Yui Toolkit

The Yui toolkit uses Dom scripts to simplify in-browser devolvement development in the browser, and uses the features of DHTML and Ajax to develop all web programs.

Animation: create a "cinematic effects" on your page by specifying the position, size, transparency, or other features of the page element )". These effects will give users a better experience when your page changes.

Connection Manager: This toolkit helps you manage XMLHttpRequest (usually called Ajax) transactions. It provides error handling for form submission) and callbacks. This toolkit also supports file upload management.

DOM: the DOM toolkit provides a simpler way to call Dom scripts, including the management of element positions and CSS styles.

Drag and Drop: Creates drag-and-drop objects. To provide rich interaction functions (such as dragging an object to the target location), you may need to write a lot of code. This Toolkit can capture all operational transactions in all supported browsers and ensure their stable operation.

Event: This magic Management Library provides you with a simple and secure way to access browser events (such as click and keyboard operations ). This event package also contains Custom Event objects, which provide a mechanism for publishing and subscribing to events for your program interaction.

Yui control:

The Yui control library provides a set of highly interactive visual elements for your page. These elements are completely created and maintained on the client, and you do not need to request the server to refresh the page.

These controls include:

AutoComplete Control: The Automatic completion control provides a progressive user experience (streamline user interactions) for text input ). The control provides a list of similar items and a type-ahead functionality based on a variety of data-source formats ), you can also use XMLHttpRequest to access data on the server.

Calendar Control: A dynamic graphic control for date selection.

Container Control: A group of controls that mimic windows styles, including tooltip, panel, dialog, and simpledialog. The module and overlay controls provide an extensible platform for you to control custom controls that mimic windows styles.

Log (logger) Control: Provides a fast and simple way to record logs. It directly outputs log information to the on-screen console and firebug, an extension component of Firefox, or the safari javascr into pT console. The debug component of Yui completely records the output and debugging information.

Menu Control: This control can be used to design a dynamic menu with just a few lines of simple code. You can use javascr into pt to construct a menu, which can be layered on top of semantic Unordered Lists.

Slider Control: Provides a slide component that allows the user to change the slider position within a certain range (X axis, Y axis.

Treeview controls: Provides a node-scalable tree control. Nodes can be links, custom attributes, and can be dynamically loaded. You can modify the display of node elements through CSS, such as the folder view, to-do task list, or other visual processing.

CSS resources of Yui

In order to make CSS conform to browser (A-grade browsers) Standards of different levels, we think a lot. We share these as part of the Yui class library, hoping to be promoted here for a concise, maintainable and outstanding design in the browser.

CSS page grids ):Seven basic page frameworks that use CSS to organize child components support 130 different page la S.

Standard CSS fonts ):Standard cross-browser font style and size display.

Standard CSS Reset ):These CSS statements are used to exclude the blank parts of the page and the style of public elements is compatible with the display of various browsers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.