Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar Label and Input not displayed with w2ui-2.0, only when using es6 #2560

Open
nfigay opened this issue Sep 13, 2024 · 4 comments
Open

Comments

@nfigay
Copy link

nfigay commented Sep 13, 2024

Short description
Toolbar Label and Input items as defined in documentation and exemplified with w2ui.es6 not properly displayed with w2ui-2.0

What is current behavior
items not displayed

What is desired behavior
items to be displayed as for exemples on the web site

Link to jsfidle/codepan with sample code
https://codepen.io/nfigay/pen/abgxGvJ

@dirkk0
Copy link

dirkk0 commented Sep 21, 2024

It works if you import it rather than including the CDN:
https://codepen.io/dirkk0/pen/ZEgzrEE
But I guess you knew that already and that was not your point.

@nfigay
Copy link
Author

nfigay commented Sep 22, 2024

It works if you import it rather than including the CDN: https://codepen.io/dirkk0/pen/ZEgzrEE But I guess you knew that already and that was not your point.

Thank for your feedback Dirk.
This is effectively not my point. I want to use w2ui-2.0. I'm expecting that proposed objects in both w2ui-2.0 and w2ui.es6 will be the same. So I copied exemples on the documentation and changed access to w2ui.es6 by access to w2ui-2.0. The reason for that is I'm developing a pure vanilla application without http server, as I want the application to run without web access, it is a "desktop" application (no need to any server, and constraints for accessing servers from the running machine). So it seems according to the encountered issue that it is not the case, and so the exemples for w2ui.es6 are not suited for developing apps with w2ui-2.0. Unfortunately I can't switch to w2ui.es6

@WillTheFarmer
Copy link

Hello @nfigay, not sure I understand your last comment. You do not need web access to run a http server. You can copy the w2ui library files locally to your computer or network and access them without Internet connection. @dirkk0 example of your toolbar works. You can easily run all the code locally.

@nfigay
Copy link
Author

nfigay commented Oct 1, 2024

Does it also work with es6 scripts? I know you can do it with w2ui-2.0 without any problem, but it seems to me that using the es6 javascript as local source (I mean opening you html on you local disk with scripts coming with it using just the browser, no HTML server) doesn't work, I didn't succeed. Am I wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants