dojo

dojo widget doesn't render unless browser window is resized

笑着哭i 提交于 2019-12-12 05:28:49
问题 The widget does not get rendered in the TabContainer unless the browser(I'm using Chrome) window is resized or Developer tool is opened. I have tried the solutions provided on earlier threads like setting the height and width of the BorderContainer, TabContainer and ContentPanes but there is no difference. The following is my code snippet. To the attachpoint "steps" I'm attaching certain data. This tab "Steps" is the problem. Any solution? Below is my code... <div> <div data-dojo-type="dijit

Synchronize interdependent Dojo widgets/values

痞子三分冷 提交于 2019-12-12 05:09:04
问题 I'm about to build a simple "mortgage calculator" where a user is to adjust some sliders OR edit values in input fields in order to calculate some final value based on the provided data. Schematically it will look something like this: Slider1 - Input1 Slider2a - Input2a Slider2b - Input2b The idea is that the value of the input must be reflected in the slider, and vice versa. In addition, the values and limits of slider 2a/2b and input 2a/2b depend on each other, according to some simple rule

say I have many divs and each div trigger an event when clicked

微笑、不失礼 提交于 2019-12-12 05:05:49
问题 Dojo 1.7 say I have many divs and each div trigger an event when clicked. So when I cilck a div, dojo adds a class, say "clicked" to the div. But how can I set it so when I click another div, it removes the previous div class "clicked" and gives it to the div that I just clicked? This is because if I clicked on one div it supposed to change its background and remove the background from the previously clicked div Thanks!!! 回答1: You can put all these div in one container, for example <div class

dojo tree event on root nodes

匆匆过客 提交于 2019-12-12 04:43:30
问题 **I'm building dojo tree using the following code: The tree is displayed as expected. The problem that I have is that the onClick event is only fired on leaf nodes. When I click on the root level node(I have several root level) it is just open showing child nodes. How can I add "extra" onClick functionality to the root nodes? 回答1: You've got openOnClick set to true for your tree. I think the API docs answer this as well as I possibly could. http://dojotoolkit.org/api/dijit/Tree/openOnClick

dojo drop down button inside jquery ui dialog

对着背影说爱祢 提交于 2019-12-12 04:36:01
问题 i placed dojo drop down button inside jquery ui dialog. The drop down list of button doesn't show in the jquery ui dialog, but dojo button is created. i tride by setting z-index more than 1000. do you have any suggesstion for this problem. here is my code //links for dojo library <script type="text/javascript"> //beginning of TraderView(CDS) Actions Button require(["dojo/ready", "dijit/form/DropDownButton", "dijit/DropDownMenu", "dijit/MenuItem", "dojo/dom"], function (ready, DropDownButton,

How to disable focus for an option in `dijit/form/Select`?

假装没事ソ 提交于 2019-12-12 04:31:48
问题 I need to change behavior for a widget dijit/form/Select . Widget should not allow focus (from mouse or using the keyboard) for options which have property disabled: true . I would like to know if you can point me out how to achieve this result. require([ 'dijit/form/Select', 'dojo/_base/window', 'dojo/domReady!' ], function(Select, win) { var select = new Select({ name: 'select2', options: [{ label: '<i>Swedish Cars</i>', value: '', disabled: true }, { label: 'Volvo', value: 'volvo' }, {

dojo datagrid event attach issue

穿精又带淫゛_ 提交于 2019-12-12 04:28:48
问题 I am working with IBM Content Navigator 2.0.3, that uses DOJO 1.8 for the GUI development. I am new in dojo, and I have to enhance one of the forms: add an event handler to the dataGrid so when the row of the grid is selected one of the buttons become enabled. dataGrid described in HTML as follows: <div class="selectedGridContainer" data-dojo-attach-point="_selectedDataGridContainer"> <div class="selectedGrid" data-dojo-attach-point="_selectedDataGrid" ></div> </div> And the JS file that

Trying to avoid multiple calls to jQuery in a Domino XPage

六眼飞鱼酱① 提交于 2019-12-12 04:27:33
问题 I am attempting to use the 'DataTables' table plug-in for jQuery on a simple Domino XPage. I have loaded the two required libraries from CDN's... JQuery: ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js DataTables: cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css I have also tried loading them from local resources (doesn't help). I then prepare a basic table on my XPage, and include the necessary Javascript to initialise the table... $(document).ready(function() { $('#tableID

wirejs and dojo using the dojo build system

隐身守侯 提交于 2019-12-12 04:25:20
问题 I have a dojo application which uses wirejs for dependency injection. When I try to build the application, I'm getting dependency errors on the 'when' and 'meld' modules. Like the following : error(311) Missing dependency. module: wire/dojo/events; dependency: when error(311) Missing dependency. module: wire/dojo/pubsub; dependency: meld error(311) Missing dependency. module: wire/dom/render; dependency: when error(311) Missing dependency. module: wire/lib/plugin-base/dom; dependency: when My

AngularJs with kendo grid inline mode cancel deletes the existing records?

微笑、不失礼 提交于 2019-12-12 04:11:06
问题 I have grid and i am trying to add record it's adding and updating also. but while click edit and not changing any values and clicking cancel it's deleting existing row value from model. Please help me to resolve this issue. I added dojo link here . http://dojo.telerik.com/enErE 回答1: Your id in schema should be an actual field. "schema": { "model": { "id": "cuobjid", } Also, if id is null i.e cuobjid is null then it will remove the row. Check updated dojo 来源: https://stackoverflow.com