You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
define([ |
|
"dojo/_base/declare", |
|
"dojo/dom-class", |
|
"./Container" |
|
], function(declare, domClass, Container){ |
|
|
|
// module: |
|
// dojox/mobile/RoundRect |
|
|
|
return declare("dojox.mobile.RoundRect", Container, { |
|
// summary: |
|
// A simple round rectangle container. |
|
// description: |
|
// RoundRect is a simple round rectangle container for any HTML |
|
// and/or widgets. You can achieve the same appearance by just |
|
// applying the -webkit-border-radius style to a div tag. However, |
|
// if you use RoundRect, you can get a round rectangle even on |
|
// non-CSS3 browsers such as (older) IE. |
|
|
|
// shadow: [const] Boolean |
|
// If true, adds a shadow effect to the container element by adding |
|
// the CSS class "mblShadow" to widget's domNode. The default value |
|
// is false. Note that changing the value of the property after |
|
// the widget creation has no effect. |
|
shadow: false, |
|
|
|
/* internal properties */ |
|
|
|
// baseClass: String |
|
// The name of the CSS class of this widget. |
|
baseClass: "mblRoundRect", |
|
|
|
buildRendering: function(){ |
|
this.inherited(arguments); |
|
if(this.shadow){ |
|
domClass.add(this.domNode, "mblShadow"); |
|
} |
|
} |
|
}); |
|
});
|
|
|