The View Object
Below is a view object in it's simplest form:
Welcome to the Medium Framework docs.
Below is a view object in it's simplest form:
Copy an array or object with various options:
Select matching elements in the DOM:
Add a list of class names to the selected elements:
Remove a list of class names from the selected elements:
Toggle a list of class names from the selected elements:
Check if a class exists on the selected elements:
Retrieve or store arbitrary data on the selected elements:
Get or set an attribute on the selected elements:
Remove an attribute from the selected elements:
Get the nth element from a list of elements:
Check if any of the selected elements match a selector:
Clone the selected elements:
Add HTML before an element (to it's parent):
Add HTML after an element (to it's parent):
Add HTML to the start of an element:
Add HTML to the end of an element:
Get or set the text content of the selected elements:
Get or set the html content of the selected elements:
Gets or sets the value of an input element:
Get or set a property on the selected elements:
Start listening on the selected elements:
Stop listening on the selected elements:
Trigger an event on the selected elements:
Send a "GET" XMLHttpRequest:
Send a "POST" XMLHttpRequest:
Send a customised XMLHttpRequest:
Manage listeners on any XHR object (in addition to the callbacks on the xhr methods above)
Start listening on an XMLHttpRequest:
Stop listening on an XMLHttpRequest: