YUI 3.x Home -

Library Examples: Recordset

Recordset: Examples

The recordset utility allows the storage and retrieval of objects (known as records). It extends the capabilities of the Arraylist module, to allow for filtering, sorting and indexing by hash tables.

  • Basic Recordset: Shows how to instantiate and interact with a standard Recordset by adding, removing and updating records/objects. Explains the events that are fired, and shows how to access the built-in hash table that stores records by their YUIDs.
  • Recordset Filter Plugin: Shows how to use filtering methods to Recordset. Key-value filtering, and filtering by providing a custom function are covered.
  • Recordset Indexer Plugin: Shows how to create and access hash tables on Recordset. Tables are kept in sync through events fired by Recordset.
  • Recordset Sort Plugin: Shows how to sort a Recordset using the default sorter, or a custom sort function. Additionally, demonstrates how convenience attributes help in determining when Recordset is in a sorted state, and what the last sort parameters were.

Copyright © 2011 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings