V
V
Vladimir Gorbunov2015-10-30 18:44:29
JavaScript
Vladimir Gorbunov, 2015-10-30 18:44:29

How to pass iframe link?

Well, it turns out to pass the iframe link, help me figure out what's the matter?

enyo.kind({
  name: "myapp.MainView",
    published: {
        url: "http://www.youtobe.com/...."
    },
    components: [{
        name: "iframe",
        tag: "iframe",
        classes: "enyo-fill",
        style: "border: none;"
    }, ],
    rendered: function () {
        this.inherited(arguments);
        this.urlChanged();
    },
    urlChanged: function () {
        if (this.url) this.$.iframe.src=this.url;
    }

});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question