source: Dev/trunk/src/client/dojox/mobile/RoundRect.js @ 532

Last change on this file since 532 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1.1 KB
Line 
1define([
2        "dojo/_base/declare",
3        "dojo/dom-class",
4        "./Container"
5], function(declare, domClass, Container){
6
7        // module:
8        //              dojox/mobile/RoundRect
9
10        return declare("dojox.mobile.RoundRect", Container, {
11                // summary:
12                //              A simple round rectangle container.
13                // description:
14                //              RoundRect is a simple round rectangle container for any HTML
15                //              and/or widgets. You can achieve the same appearance by just
16                //              applying the -webkit-border-radius style to a div tag. However,
17                //              if you use RoundRect, you can get a round rectangle even on
18                //              non-CSS3 browsers such as (older) IE.
19
20                // shadow: [const] Boolean
21                //              If true, adds a shadow effect to the container element by adding
22                //              the CSS class "mblShadow" to widget's domNode. The default value
23                //              is false. Note that changing the value of the property after
24                //              the widget creation has no effect.
25                shadow: false,
26
27                /* internal properties */       
28               
29                // baseClass: String
30                //              The name of the CSS class of this widget.
31                baseClass: "mblRoundRect",
32
33                buildRendering: function(){
34                        this.inherited(arguments);
35                        if(this.shadow){
36                                domClass.add(this.domNode, "mblShadow");
37                        }
38                }
39        });
40});
Note: See TracBrowser for help on using the repository browser.