Element.rgba 1.1

This package provides 2 ways of making Element set rgba background values in a cross browser fasion:

  1. a setRGBA method
  2. a monkey-patch to Element.setStyle and Element.getStyle
  3. A bonus - rgba is added to Browser.Features

The 2 packages come in seperate files, so you can choose to use only the setRGBA method.



Details

Author
Arieh Glazer
Current version
1.1
GitHub
arieh/Element.rgba
Downloads
9430
Category
Native
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_:
    • core/1.3: Core,Element
    • Element.rgba/1.0.1 : Element.setRGBA

How to use

setRGBA

el.setRGBA(1,230,25,0.75);

Monkey Patch

el.setStyle('background','rgba(1,2,3,0.5)');
el.setStyle('background-color','rgba(2,340,5,0.88)');

el.getStyle('background-color'); //rgba(2,340,5,0.88)

Browser.Features.rgba

if (Browser.Features.rgba) doSomthing();

Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus