Code Monkey home page Code Monkey logo

Comments (4)

PaulNieuwelaar avatar PaulNieuwelaar commented on May 26, 2024

Hi Ben, which version of the alert.js file are you using? And do you have a reference to the actual .js file in your project as well?

from alertjs.

PaulNieuwelaar avatar PaulNieuwelaar commented on May 26, 2024

Here's some more info about what else needs to be included in the project: https://github.com/PaulNieuwelaar/alertjs/wiki/Documentation-v3.0#typescript-definition

from alertjs.

benempson avatar benempson commented on May 26, 2024

Hi Paul, I'm using version 2.1, implemented several years ago and with no need for Dialog functionality. I do not have a reference to the .js file no, I guess this must be the error? I guess also that I will need to convert the .js file to TypeScript in order for it to be compatible. I will do this and come back.

Wrt https://github.com/PaulNieuwelaar/alertjs/wiki/Documentation-v3.0#typescript-definition, this only gave me the location of the TypeScript definition file, I'm not using PCF controls so I don't see any other relevant info there...

from alertjs.

PaulNieuwelaar avatar PaulNieuwelaar commented on May 26, 2024

Hi Ben, Ah yeah the TypeScript definition was created from 3.1+ and it hasn't been tested with 2.1 (which we no longer support). In theory it should still work as the solutions are backwards compatible, as long as you don't use the 3.0+ features. Only thing that may have issues is the jQuery reference as v2.1 tries to get this from the parent page, which may not exist in a ts project.

You'll need to include the js/img/css files in your project manually. You shouldn't need to convert the js to ts. Just make sure the folder structure matches the CRM solution, e.g. /alertjs/js/alert.js, /alertjs/js/alert.d.ts, /alertjs/css/alert.css, /alertjs/img/alert.png, /alertjs/img/alert.gif. Then when you import the alert module it should match up with the other files.

from alertjs.

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.