Click to return to the DHTML, HTML     
SELECTABLE Attribute | se...     snapToGrid Method     Behaviors Library    
Web Workshop  |  DHTML, HTML & CSS

SNAPABLE Attribute | snapable Property


Specifies whether the element snaps to a grid when the ondragend event fires for the moveable behavior.

Syntax

XML<Prefix:CustomTag ID = sID STYLE="behavior:url('moveable.htc')" SNAPABLE = 0 | 1 .../>
Scripting[ iSnapable = ] oMoveable.snapable

Possible Values

Prefix Prefix used to associate CustomTag with a namespace. This prefix is set using the XMLNS attribute of the HTML tag.
CustomTag User-defined tag.
sID String that uniquely identifies the object.
0 Integer specifying the element does not snap to the grid defined by the mv--grid attribute.
1 Integer specifying the element snaps to the grid defined by the mv--grid attribute.

The property is read/write with a default value of 0.

Remarks

The snapable property is available only to objects participating in the moveable behavior.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
moveable


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.