dijit.form

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="{

Dojo JsonRest appends &name=* to target URL

余生长醉 提交于 2019-12-25 04:28:24
问题 I try to use the Dojo JsonRest to fill a dijit.form.select Box and I use the following code: var stateStore = new JsonRest({target: "ip-address/activiti-rest/service/repository/process-definitions?startableByUser=kermit", headers: {"Authorization": "Basic a2VybWl0Omtlcm1pdA=="}}); The Problem is, that the target-url is extended with &name=* Therefore, the Server sees the following request: ipaddress/activiti-rest/service/repository/process-definitions?startableByUser=kermit&name=* I can not

dojo dijit.form.DateTextBox constraints not working, datetextbox

有些话、适合烂在心里 提交于 2019-12-24 02:40:59
问题 Hi I'm new to javascript and dojo. I'm trying to use two dijit DateTextBoxes with the drop-down calendars to establish a date range for a query on a database. I want to restrict the dates available, once the begin or end date has been selected, so that its impossible to pick an end date that is chronologically before the begin date, and vice versa. I'm trying to apply the example called 'changing constraints on the fly' (about half way down the page) from the dojo reference here: http:/

Changing constraints on the fly

﹥>﹥吖頭↗ 提交于 2019-12-24 01:33:06
问题 I have a dijit.form.NumberTextBox input field that starts out with these parms: new dijit.form.NumberTextBox({ id: din1, style: "width:60px", constraints: { places: 0, pattern: '######' } }, din1); Everything works great..My question is I would like to change 'places' and 'pattern' parms on the fly. So I wrote this to change 'places' and 'patterns' parms: var myFldObj = dijit.byId(din1); if (myFldObj) { var myConstObj = myFldObj.attr('constraints'); if (myConstObj) { myConstObj.places = 2;

Dojo _hasDropDown - How do I declaratively bind the properties?

让人想犯罪 __ 提交于 2019-12-14 04:20:04
问题 ExpandableSearchComponent.html: <div class="${baseClass}"> <div data-dojo-type="dijit/_HasDropDown" data-dojo-props="dropDown: 'containerNode'"> <div data-dojo-type="dijit/form/TextBox" name="${SearchViewFieldName}Textbox" class="${baseClass}Textbox" data-dojo-props="placeholder:'${fieldName}'"></div> <div class="${baseClass}Container" data-dojo-attach-point="containerNode"></div> </div> </div> ExpandableSearchComponent.js: /** * Javascript for ExpandableSearchComponent */ define([ "dojo/

Set Value of Dijit.Form.Textarea

限于喜欢 提交于 2019-12-14 03:45:13
问题 I have a dijit dialog that contains a form that I want to auto-populate. I can get the dialog to display with the form in it, but I have been unable to set the value of a text area within the form. Here is the div that houses the html. <div dojoType="dijit.Dialog" id="formDialog" title="Form Dialog" > <table> <tr> <td> <label for="desc"> Description: </label> </td> <td> <textarea id="desc" name="desc" dojoType="dijit.form.Textarea" style="width:200px;"></textarea> SAVE CLOSE I can get this to

Dojo timing issue with dijit/registry and dojo/domReady

∥☆過路亽.° 提交于 2019-12-14 02:59:12
问题 I am working on a one-page application in Dojo which submits forms via ajax and returns parses the return value before rendering the page. When I go about this I end up with a timing error. When the following code is included via a script tag, it logs undefined: require(["dijit/registry", 'dojo/domReady!'], function(registry){ console.log(registry.byId('my-id')) }); When I paste it in the console, I get the expected dijit widget. I suspect that the problem is that this is firing before the

Cannot get a reference to a dijit form when the form has a DateTextBox

断了今生、忘了曾经 提交于 2019-12-13 20:02:53
问题 I am having trouble getting a reference to the dijit form widget when the form contains a DateTextBox. The code snippet below demonstrates the problem. When executed, the alert box says "undefined". However, if I get rid of <input ... id="dateTextBox"... /> , I am able to get a reference to the form widget. <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/claro

Fuzzy Matches on dijit.form.ComboBox / dijit.form.FilteringSelect Subclass

亡梦爱人 提交于 2019-12-13 02:43:43
问题 I am trying to extend dijit.form.FilteringSelect with the requirement that all instances of it should match input regardless of where the characters are in the inputted text, and should also ignore whitespace and punctuation (mainly periods and dashes). For example if an option is "J.P. Morgan" I would want to be able to select that option after typing "JP" or "P Morgan". Now I know that the part about matching anywhere in the string can be accomplished by passing in queryExpr: "*${0}*" when

Dojo: Getting access to the clicked item in a dijit.form.Select?

元气小坏坏 提交于 2019-12-13 02:28:41
问题 I have a dijit Select widget and need to do something when the user clicks one of the dropdown items. Meaning I need access to the clicked item, to retrive some information, and call one of my own functions. I've tested to attach an onChange on the select and I can get the text value selected fine. But I need the object and not the value. The object holds more values in a data-info-attribute. Basically what I'm trying to achieve is to show one value in the list but send along more values to