Does anyone know where i can find the reference on how to use jmaki.addWidget?
You may want to check out this page too:
Basically it uses the widget loader extension to load widgets and dependencies dynamically (after the page load).
The code is a little buried but you can find it here:
Basically you add this extension after the jmaki.js as in the first page and you can load any widget you like.
You can also see it using jmaki.loadWidget which will do an immediate load.
jmaki.addWidget is used to add widgets as the page is loading and once the load is done the list of widgets built up using jmaki.addWidget is then loaded.
What are you trying to do with jmaki.addWidget?
Learning jmaki, i read Carla Mott's blog [b]http://weblogs.java.net/blog/carlavmott/archive/2008/08/getting_server.html[/b]. There i saw that she [b]pre-created[/b] a [i]yahoo.simpledlg[/i] with all the messages and buttons needed, hid it and showed it as triggered by an event.
I was supposed to use jmaki.addWidget to create dialogs as needed. The messages which i would place to the dialogs would come from user entry or somewhere else so i cant have them pre-created.
I've added the jMaki Light Boxes which is a little more advanced solution that I am using for my day job.
Find it at:
In the lightbox/test directory there are a 3 of 4 examples of including text, external pages, widgets, an static content. See the index.html src.
This jmaki-lightbox.zip is a self contained zip and includes the latest version of jmaki.js (version 1.9.1) that I still testing before our next general release.
Please give the example a look and let me know if you have problems with it.
thanks Greg. The modal dialog boxes are neat :>
nevermind, got it: https://ajax.dev.java.net/jsdocs/Jmaki.html#addWidget
samples would be useful though...
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.