-
Notifications
You must be signed in to change notification settings - Fork 57
Developing for DisplayJS
Arthur Guiot edited this page Jul 29, 2017
·
2 revisions
If you like DisplayJS, there are three things that you can do:
- Using DisplayJS in projects and sharing DisplayJS to your friends
- Star ⭐️ DisplayJS on Github and help developing DisplayJS
- Create plugins for DisplayJS
** v0.3.2-beta
of DisplayJS if you want to develop plugins.**
When you want to develop plugins, your work will only consist of creating functions for DisplayJS. Let's see how you add function to our library using the $.fn()
function:
JS:
// You can change the "myFunctionName" by your custom name
$.fn.myFunctionName = function (args) {
// If you don't want to use JSON for your arguments, you can but we recommend using it.
var arg = $.extend({ text: "Hello World 🌎!" }, args);
alert(arg.text)
})
Now, you can simply use the $.myFunctionName()
function normally.
Don't hesitate to ask your questions
- Home
- The Core Languages
- Getting Started: Installation
- The Basics (
$.var()
+$.target()
) - Developing for DisplayJS
-
$.select()
- Text related
- If...else
$.xss()
$.repeat()
$.custom()
$.live()
$.load()
$.on()
$.onEvent()
$.ready()
- Scroll API
$.all()
$.clone()
$.is()
$.valEmpty()
$.remove()
$.show()
&$.hide()
$.ajax()
- Class Related
$.css()
$.getStyle()
- Fade effects
$.extend()
$.dynamic()
$.parent()
- Elements-Nodes
$.component()
$.time_ago()
$.copy()
$.then()
$.sleep()
$.getProp()