ラベル property の投稿を表示しています。 すべての投稿を表示
ラベル property の投稿を表示しています。 すべての投稿を表示

2012年3月26日月曜日

Retrieving an atlas control object from an html element

Ok I know you can get the HTML element an atlas control is tied to using the associatedElement property of a control object. I was wondering if there is a way in the framework of retrieving a control if you've got the HTML element?

Hi,

yes, you can use the control property. For example, if myElement is a reference to a DOM element that is associated to an Atlas control, you can write

myElement.control;
to get a reference to the Atlas control.

Brilliant, thanks for the help.

2012年3月21日水曜日

rounded dropShadow: radius?

any plans to include a 'radius' property to go with the 'rounded' prop on the dropShadowExtender? (seems like a no-brainer, to me,Wink but i certainly don't profess to know enough about the innards of atlas and the toolkit...)

i tried (not very hard, mind you) to extend it myself, but made a mess...(as they say, 'a little knowledge is a dangerous thing'...Embarrassed)

Hi bitbucket,

I'vecreated a work item to expose a CornerRadius property on the DropShadowExtender.

Thanks,
Ted


I've just made this change for the next Toolkit release:

Add Radius property to DropShadow extender. It's passed through to the embedded RoundedCorners behavior(s) so that one can control the radius of the control and drop shadow (when rounded). Added "Radius" radio buttons to DropShadow sample page to demonstrate the feature. Also updated the automated test cases to cover the new get_Radius/set_Radius functions.


sweet! looking forward to the next release. thanx, david!