|
CORE
NATIVE
TABLE
MAKE
CUSTOMIZE
EFFECTS
effects_base.js
effects_morph.js
effects_fade.js
effects_move.js
effects_extra.js
effects_toggle.js
effects_cycle.js
effects_cycles.js
VIRTUAL BOX
PLUG-IN
|
make_list.js
Contains the Make.List Class, the Array.makeList method and the make_list function to easily create lists from arrays Contains Class Make.List, Array.makeList, Function make_list Requires Summary
Allows you to create either unordered and oreder lists from array. You can also create lists of lists and list of links. Note If the current element of the main array is a string, it will be added at the main list as a nornal list item.If it is an array of strings, it will be added as a sub-list.If it is an object, you can pass as properties: 'text' (the text of the link), 'href' and linkOptions, which is an object containing the attributes/events/styles of the link. In this way you can create a link item in the list. Extends Class Make Constructor new Make.List (id, items, options) Properties
Options
Methods
top method make makes a list from an array of elements. Returns the list
Example var items = [ 'home', {text:'download', href:'/download', linkOptions: {'title': 'download', 'target': '_blank'}}, 'examples', {text:'documentation', href:'/documentation/constructors', linkOptions: {'title': 'docs', 'target': '_blank'}} ]; var list = new Make.List('list', items, {listOptions: listOptions, content: 'html'}).make(); list.inject(element); Contains the makeList method
Extends Class Array Methods
Properties
top method makeList Array method to make lists from an array of elements. Returns the list
Arguments
top function make_list Creates lists like Make.List Class but as a function
Arguments
Documentation By
Riccardo Degni -
powered by MakeDocs, CMS by RD |