Skip to content

mattdesl/widget.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

widget.js

Small GUI utility belt on top of jQuery

Widget is really just an extension of jQuery's prototype:

  var img = new Widget("<img>",  {
    src: "icon.png"
  }).css({
    ... some styling ...
  });;

But it also has some utilities:

  img.fg("red").bg("#ff0"); //change css color and background-color
  img.absolute().position(250, 50); //sets "position" to absolute, then sets left and top to (250, 50)
  img.relative().size(50, 50); //sets "position" to relative, then width and height to (50, 50)

Over time this will grow to include some other generic UI elements built on top of Widget, like a slider, checkbox, etc. built through JS.

TODO:

About

Small GUI utility belt on top of jQuery

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors