Code Monkey home page Code Monkey logo

Comments (4)

estruyf avatar estruyf commented on August 28, 2024

@AJIXuMuK can you help @kspranesh with this?

from sp-dev-fx-controls-react.

AJIXuMuK avatar AJIXuMuK commented on August 28, 2024

Hi @kspranesh
I've created a small sample for IFrameDialog here

There is an issue on how to reference the component from the library (I will fix it), but the component itself works as expected.
Regarding your concerns:

  • I use it and i get promise errors with sp.dialog.js sp.dialog.js is not used in IFrameDialog. Maybe these errors are posted from the page that you're opening in the iframe.
  • Do i have to explicitly implement the method?. Yes, you should implement this method. It's a handler to execute some code when the iframe's content is loaded. For example, you can access iframe page's HTML and change something there.

from sp-dev-fx-controls-react.

AJIXuMuK avatar AJIXuMuK commented on August 28, 2024

Here is a PR to address reference issue. It also adds IFrameDialog example to the web part we have in the project.

from sp-dev-fx-controls-react.

Gennady-G avatar Gennady-G commented on August 28, 2024

@AJIXuMuK can You please provide a string how You call IFrameDialog with different urls?.. For example I store links to display forms and want them opened as popups..

url={this.props.url}

as I understand - opens hard-coded property, but in my classic projects it was a function..

p.s.: sorry, I am newbie in React..

Best regards, Gennady

from sp-dev-fx-controls-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.