jquery ui resizable left-bottom handle to resize

前端 未结 5 1877
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 09:23

I am using jquery-ui-resizable plugin in my project.

By default when you make a DOM Object jquery-ui-resizable the resizable handle will appear on right-bottom corne

5条回答
  •  长发绾君心
    2020-12-29 09:47

    You should use the handles

    supported: { n, e, s, w, ne, se, sw, nw }. 
    

    This will create the Handles on the side you specified. Default values are

    'e, s, se'
    

    Code examples

    Initialize a resizable with the handles option specified.

    $( ".selector" ).resizable({ handles: 'n, e, s, w' });
    

    Get or set the handles option, after init.

    //getter
    var handles = $( ".selector" ).resizable( "option", "handles" );
    //setter
    $( ".selector" ).resizable( "option", "handles", 'n, e, s, w' );
    

提交回复
热议问题