AllenZhang | 16 Sep 23:03 2014

How to attach ResizeHandle to the left boundary of a widget?

Hi list,

The ResizeHandle class will always attach the handle to the right boundary
of the widget. If I set 'resizeAxis' to 'x', it will resize the widget via
the right boundary of the widget. 

The question is, how do I attach the handle to the left boundary of the
widget, so that I can resize the widget via the left boundary?

Regards,

Allen

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/How-to-attach-ResizeHandle-to-the-left-boundary-of-a-widget-tp4003643.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

theinnkeeper | 16 Sep 22:28 2014

MVC WidgetList and DTL

Is it possible to use the dojox.dtl.inline or something like that to add
conditionals(if statements) to the template being used by widgetList.

From what i have seem, it does not seem possible but just wanted to check.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/MVC-WidgetList-and-DTL-tp4003642.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

George Neuner | 16 Sep 19:56 2014
Picon
Picon

Menus


Hi all,

I am using Dojo 1.10 and I'm having some issues working with menus.  I
have a menu bar with some dropdown menus defined via markup, and
scripts that show/hide/enable items in the menus based on context.

Setting style "display:none" on a menu item does not work in IE8 - it
acts instead like "visibility:hidden" - i.e., the object isn't visible
but it still takes up space.  This may be purely an IE issue, but
there still are a lot of people running XP so if anyone knows a
workaround it would be appreciated.

In more recent browsers - IE11, Chrome 37 and FF31/32 - menus work
properly *after* the page loads, but in Firefox during page load there
is flicker as all the submenus are displayed  briefly.  On a slow
computer it is particularly noticeable.  

The flicker seems to be caused simply by loading/rendering the menu
markup - I disabled all of my scripts to see if it was my handling of
the node styling that was the problem.

Is this happening because the menus are defined in markup?  I switched
to markup because initially I had some trouble applying styles to
programmatically defined menus.  [Now that I've figured out the menu
node types and where to apply the styles, that may no longer be a
problem.]

Thanks for any suggestions.
George
(Continue reading)

karozans | 16 Sep 19:52 2014
Picon

Custom Templated Widget

Hi everyone.  I am writing my own custom widget that I need to use as an
editor for Gridx.

I am confused with the difference between "declarative scripting" defined in
my declarative markup and the "data-dojo-attach-event" property.

*Declarative Scripting Example*

*data-dojo-attach-event Example*

What's the difference between the two?  When should I use one or the other?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Custom-Templated-Widget-tp4003637.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Ascidian | 16 Sep 12:45 2014
Picon

Error while using a

Hi
I'm trying to load a dijit/form/ComboBox with JSON data from an url, but
clicking on the combobox produces the error TypeError: item[(intermediate
value)] is undefined.
The JSON data is formatted as follows.

[
    {
        "Tissue": {
            "id": "A",
            "name": "Tonsil"
        }
    },
    etc..

The Javascript

require([
		"dojo/json",
		"dojo/request/xhr",
		"dojo/dom",
		"dojo/dom-construct",
		"dojo/store/Memory",
		"dijit/form/ComboBox",
		"dojo/domReady!"
		], 
		function(JSON, xhr, dom,domConst, Memory, ComboBox){
			
			
		
(Continue reading)

gumbawumba | 16 Sep 05:28 2014
Picon

dojox.layout.ContentPane possible bug in dojo 10.1

I was playing with doing a build of DoJo 10.1 (thanks by the way!)
and was getting a message in my console f.teardown() not a function.

I traced this to dojox.layout.ContentPane and I see a destroy: function that
was not in 10.0 (not sure if that matters.)  Anyway.  I added a check for
the teardown function on the setter and that seemed to fix my issue.  I have
not debugged this further seeing what the setter is and why it does not have
a teardown function if it should or not, yet.  

destroy: function () {
  var setter = this._contentSetter;
  if (setter) {
    if (lang.isFunction(setter.teardown)) {
      setter.teardown();
    }
  }
  this.inherited(arguments);
}

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojox-layout-ContentPane-possible-bug-in-dojo-10-1-tp4003627.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

(Continue reading)

tsc | 15 Sep 21:22 2014
Picon

different column width in a dojox.layout.TableContainer

I'm using a dojox.layout.TableContainer with false for showLabels.  To this
container, I'm adding a checkbox in column 1 and content pane in column 2. 
I'd like the checkbox column to be much smaller than the other column.  I've
tried setting the width but its not respected at runtime.   How can I set
the size on the columns of a TableContainer?

    	var programmatic = new dojox.layout.TableContainer({
			  cols: 2,
			  showLabels: false    				  
			});

       dojo.forEach(obj.numbers, dojo.hitch(this, function(number, index) {  
    		
    		
    		var cpane = new dojox.layout.ContentPane ({     
       		        content: "my checkbox",
        		style:"width:10%"
                });
    		
    		var checkBox = new dijit.form.CheckBox({
                  name: number,	                
                  value: number,
                  title: number
                });    
    		var cpane2 = new dojox.layout.ContentPane ({    
        		content: number + " data"
                });
    		cpane.addChild(checkBox);
    		programmatic.addChild(cpane);
    		programmatic.addChild(cpane2);
(Continue reading)

Nick Fenwick | 15 Sep 13:17 2014

How to do sensible 'fill the screen' layout with dojox/mobile (dojox/app)?

Hi all,

We're building a very simple mobile app for the first time, based on 
dojox/app framework, so we have a .json file that describes the app, and 
view .js files that return an object that is mixed into a View object by 
the dojox/app code.

I'm getting quite confused by the apparent lack of support for sizing 
and positioning elements relative to the screen edges.  A dojox/app/View 
seems to be like a traditional web page, it starts at the top left, and 
flows right and down according to its content.  So if I only put a 
simple paragraph on my view.html, the View domNode only extends down the 
page to cover that paragraph.  Setting things to height:100% in that 
View make them only as tall as the View, not the screen.

I've seen that ScrollableView offers support for a fixed header and 
footer, which is a kind of screen size awareness, but it insists on the 
center area being a scrollable view, and the header and footer elements 
seem to be quite basic.  I'd like to lay out my own content.

I have two cases giving me trouble:
1/ Info at top, List at bottom.
An info display element at the top of the screen (probably in a 
RoundRect, occupying around half the screen height), an informational 
label, and an EdgeToEdgeStoreList at the bottom.
view.html file:
- dojox/mobile/Heading [fixed="top"]
   - dojox/mobile/ToolBarButton 0 nav back
   - name label
   - dojox/mobile/ToolBarButton - nav forward
(Continue reading)

bebooss | 15 Sep 12:11 2014

dojox mobile ToolbarButton how to enable tooltips on mobile device?

in browser: when mouse is hovered it shows me a tooltip

does something like this works for mobile devices as well?

since there is no mouse and no hover, it could work on touching the
element...

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojox-mobile-ToolbarButton-how-to-enable-tooltips-on-mobile-device-tp4003615.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Eddy Ilg | 13 Sep 19:20 2014
Picon

ValidationTextBox - swap between clear and hidden input

Hi,

I would like a password input field to initially, or when empty, display 
the plain text "Password" (as a hint that this is a password box). As 
soon as the user types a character I would like the input to be hidden 
(displays as dots), meaning the box should change to type="password".

Does anyone have a hint how to do this?

Thanks in advance,

Eddy

--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Keith | 13 Sep 18:10 2014
Picon

Customize DateTextBox

I extended DateTextBox to change the date pattern to MM/dd/yyyy. Using the reference document from
DateTextBox, I am able to convert the date to the right format for submission. However, the widget is
writing the text field to M/d/yyyy when it refreshes itself. How do I force it to display in a date form like
09/08/2014 instead of 9/8/2014? Below is my code snippet.

define([ "dojo/_base/declare", "dijit/form/DateTextBox", "dojo/date/locale",
		"dojo/_base/array", "dojo/json", "dojo/request", "dojo/_base/config",
		"dojo/dom-construct", "dojo/on", "dijit/registry", "dojo/_base/lang",
		"dojo/date/stamp", "dojo/date" ],

function(declare, DateTextBox, locale, array, json, request, config,
		domConstruct, on, registry, lang, stamp, date) {

	var _datePicker = declare("custom.datePicker", DateTextBox, {

		serverFormat : {
			selector : 'date',
			datePattern : 'MM/dd/yyyy',
			locale : 'en-us'
		},
		value : "",
		hasDownArrow : true,
		postMixInProperties : function() { // change value
			// string to Date
			// object
			this.inherited(arguments);
			// convert value to Date object
			this.value = locale.parse(this.value, this.serverFormat);
		},
		// To write back to the server in Oracle format, override the serialize
(Continue reading)


Gmane