Git Product home page Git Product logo

Comments (4)

vitmalina avatar vitmalina commented on July 25, 2024

Not sure I am following the question. Yes, this repo has been updated to be es6 modules by default. However, you can link here regular w2ui.min.js and work with it in the same way as before. Please provide more details, as I am not following what your issues is.

from w2ui-starter-es6.

pf-tech avatar pf-tech commented on July 25, 2024

Sure.

So, the server I am using is not allowed to call outside of itself. I downloaded https://raw.githubusercontent.com/vitmalina/w2ui/master/dist/w2ui-1.5.js and installed the file locally.

I have found that there is a difference in the way legacy utilizes and calls the built-in functions differently from the ES6 version. And I get errors on things such as the advanced search, despite having my columns declared in the search section. I haven't even tried more complex things like the forms yet, though I need to. I worry I'm doing something wrong in my syntax because the files are structured differently.

I also wondered if there was an "export" feature for the grid that I did not notice. The client would love an export-like feature, and though I'm sure I could build a plugin, I thought I'd ask if there is one already.

Anyway, I just wondered how to use the flat file above like ES6 since it throws errors with trying to do the ES6 import. The error says no export statement exists within the flat file. I tried adding export statements, and that throws errors as well.

from w2ui-starter-es6.

pf-tech avatar pf-tech commented on July 25, 2024

~Another clarification, I cannot have direct access to the server. I cannot install via any server commands. So no NPM, or SSH, or anything. There's no React or Vue or anything either. It's a very "shared host" in that aspect even though it is not a shared host, just extremely restricted access.

from w2ui-starter-es6.

vitmalina avatar vitmalina commented on July 25, 2024

Well, I am still not fully understand what is wrong. You might take a look at this repo, https://github.com/vitmalina/KickStart, which is the predecessor. It might give you some clues.

As for the files, you can link this file https://raw.githubusercontent.com/vitmalina/w2ui/master/dist/w2ui.js, which more like the old way. It does not use import and export but works from the global scope. It even registers jQuery plugins if jquery is loaded. You might link it instead of v1.5

I hope it helps.

from w2ui-starter-es6.

Related Issues (3)

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.