Browse Source

给iframe加方法

es6
windy 8 years ago
parent
commit
c84fe5777f
  1. 9
      src/base/single/iframe/iframe.js

9
src/base/single/iframe/iframe.js

@ -30,6 +30,15 @@ BI.Iframe = BI.inherit(BI.Single, {
return this.options.src; return this.options.src;
}, },
setName: function (name) {
this.options.name = name;
this.element.attr("name", name);
},
getName: function () {
return this.options.name;
},
getWidth: function () { getWidth: function () {
return this.options.width return this.options.width
}, },

Loading…
Cancel
Save