1.0.5 • Published 7 years ago

lix-module v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

npm version

Lix

This module allow to use some useful functions.

Getting started

To install this module just type the command npm install --save lix-module

Methods

Methods can be called by the shortcut £

This is the list of methods with her parameters and description

MethodsParametersDescription
getById()NoneGet elements by ID
getByName()NoneGet elements by name
getByTag()NoneGet elements by tag
getByClass()NoneGet elements by class
getValue()NoneReturn the value of an element or an array with all values founded
setValue()NoneUpdate the value for all values founded
addCSSClass(name)name: stringAdd a CSS class
addEvent(action, callback)action: event, callback: function()Add an event on ours elements
addText(text)text: stringAdd text in an element
showHide()NoneShow or hide an element
checkUncheck(bool)bool: booleanCheck or uncheck for radio buttons and checkboxes
getByEven()NoneGet elements in an array whose the index is even
getByOdd()NoneGet elements in an array whose the index is odd
setOpacity(level)level: numberMake opaque elements
verifyDOM(callback)callback: function()Verify the loading of the DOM
setStyle(object)object: objectUpdate the style of an element
fadeOut(element, time)element: [], time: numberDisappearance with fade
fadeIn(element, time)element: [], time: numberAppearance with fade
deleteEvent(action, callback)action: event, callback: function()Get elements by ID
getByInstance(element)element: []Get elements by instance
insertHTML(html)html: stringInsert HTML code in a element
insertText(text)text: stringInsert text in a element
createXHR()NoneCreate a XHR object. This method is available via the AJAX object
sendRequest(method, url, valToSend, callback)method: string, url: string, valToSend: number, callback: function()Send request GET/POST. This method is available via the AJAX object

Authors

  • Samir Damree - JavaScript Developer

License

This project is licensed under the ISC License

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago