Added ability to override on, width and height through data attributes