当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


JQuery UI Sortable cursor用法及代码示例


用法:

cursor
类型:String
默认:"auto"
定义排序时显示的光标。

代码示例:

使用指定的 cursor 选项初始化可排序:

$( ".selector" ).sortable({
  cursor: "move"
});

初始化后获取或设置cursor选项:

// Getter
var cursor = $( ".selector" ).sortable( "option", "cursor" );
 
// Setter
$( ".selector" ).sortable( "option", "cursor", "move" );

相关用法


注:本文由纯净天空筛选整理自jqueryui.com大神的英文原创作品 Sortable cursor。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。