dojo

Changing default style of DOJO widget

六眼飞鱼酱① 提交于 2020-01-03 15:20:28
问题 I'd like to be able to change some of the default CSS styles for, for example, dijit.TitlePane without hacking the "factory-installed" css themes. What I'm trying to do is remove the Title and ContentOuter borders of a TitlePane. Setting a class (in this case, "borderless") when declaring the widget doesn't work (see below: I've also tried setting the class within data-dojo-props. Still no go). <div class="borderless" data-dojo-type="dijit.TitlePane" data-dojo- props="title:'Filter by Last

How to change order of elements in a dijit.form.Select

一笑奈何 提交于 2020-01-03 10:59:07
问题 I'm using Dojo 1.5 to create a dijit.form.Select with some data from a datastore. The issue I'm finding is that I want the select to show the elements ordered by the identifier, but the select is ginving them ordered by the label. How can I avoid this behaviour?. Another issue I'm finding is that when I set the store, I initialized the store to select one of the elements, but it is selecting the first one. The code is a follows: dojo.require("dijit.form.Select"); dojo.require('dojo.data

How to change order of elements in a dijit.form.Select

∥☆過路亽.° 提交于 2020-01-03 10:59:06
问题 I'm using Dojo 1.5 to create a dijit.form.Select with some data from a datastore. The issue I'm finding is that I want the select to show the elements ordered by the identifier, but the select is ginving them ordered by the label. How can I avoid this behaviour?. Another issue I'm finding is that when I set the store, I initialized the store to select one of the elements, but it is selecting the first one. The code is a follows: dojo.require("dijit.form.Select"); dojo.require('dojo.data

Style Dojox Grid Row depending on data

爱⌒轻易说出口 提交于 2020-01-03 10:56:30
问题 iam trying to style an Row inside an DojoX (1.2.3) Grid depending on values from the grid. GridLayout: var view1 = { noscroll: true, rows: [{ field: 'TASK_ID', name: 'ID', width: '80px', get: this.getColor }, { field: 'MENUPOINT', name: 'Action', width: '250px' }] }; getColor Function: getColor: function(inRowIndex) { console.log(inRowIndex); grid = dijit.byId('gridTaskCurrent'); // if task_id = 1 style row with other background(?) }, And i have no idea how to get the task_id value from every

How to change dojo locale after dojo loaded?

久未见 提交于 2020-01-03 06:46:07
问题 We need set locale in data-dojo-config before dojo loaded so that dojo.i18n will work with this locale. Is there any workaround that we can change this locale in dojo/_base/config after dojo loaded so that any further dojo.i18n call will work with this new locale? I have a single page application, by carefully design, I already be able to recreate all my UI widgets dynamically anytime. I want to add a Select somewhere so that user can change languages on the fly. Currently the only solution I

IBM Worklight with Dojo Toolkit | dojo/main.js 404 not found issue

岁酱吖の 提交于 2020-01-03 05:47:11
问题 I have recently started exploring IBM Worklight which looks really promising to build hybrid mobile apps, in order to do so, created a Worklight project while choosing Dojo Toolkit as a default framework choice and got to see the missing dojo/main.js issue. Here is the HTML code: <!DOCTYPE HTML> <html> <head> <title>TD_Mobile</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,

How do I set the zIndex on a dijit.TooltipDialog?

只愿长相守 提交于 2020-01-03 04:47:06
问题 I've created a dijit.TooltipDialog and everything works as it should. However, if another dialog is produced from within the tooltip dialog it shows up behind the tooltip dialog instead of on top of it. I checked the zIndex on the 2 dialogs and the tooltip dialog is 1000 and the other dialog is 950. I've tried setting the zIndex on the respective container node and the tooltip dialog's "domNode" both with no luck. So does anyone know how to set the zIndex on the tooltip dialog? 回答1: as you

How to add button or images to dojo grid

北战南征 提交于 2020-01-03 04:21:29
问题 I have a dojo grid with a json datastore (mysql resultset converted into json format). Currently my grid show 5 columns as shown below in the figure: I have column named 'Action'. The rows under this 'Action' column should contain buttons or images(edit icon, delete icon) with hyperlinks such as edit.php?id=1 for edit, or delete.php?id=1 for delete. Here is my dojo grid code: <span dojoType="dojo.data.ItemFileReadStore" data-dojo-id="studentsStore" url="http://localhost/newsmis/public

Using dijit.InlineEditBox with dijit.form.Select

半城伤御伤魂 提交于 2020-01-03 02:05:21
问题 I'm trying to use a dijit.form.Select as the editor for my dijit.InlineEditBox. Two problems / unexpected behavior seem to occur: Inconsistently, the InLineEditBox doesn't have the initial value set as selected Consistently, after selecting a choice, the value that should be hidden is shown instead of the label. The width isn't set to 130px Here's working code: http://jsfiddle.net/mimercha/Vuet8/7/ The jist <span dojoType="dijit.InlineEditBox" editor="dijit.form.Select" editorParams="{

Using dijit.InlineEditBox with dijit.form.Select

末鹿安然 提交于 2020-01-03 02:05:13
问题 I'm trying to use a dijit.form.Select as the editor for my dijit.InlineEditBox. Two problems / unexpected behavior seem to occur: Inconsistently, the InLineEditBox doesn't have the initial value set as selected Consistently, after selecting a choice, the value that should be hidden is shown instead of the label. The width isn't set to 130px Here's working code: http://jsfiddle.net/mimercha/Vuet8/7/ The jist <span dojoType="dijit.InlineEditBox" editor="dijit.form.Select" editorParams="{