Moveable
    Preparing search index...

    Interface Able<Props, Events>

    You can make Able that can work in Moveable. In Able, you can manage drag events, props, state, fire event props, and render elements.

    interface Able<
        Props extends IObject<any> = IObject<any>,
        Events extends IObject<any> = IObject<any>,
    > {
        ableGroup?: string;
        always?: boolean;
        canPinch?: boolean;
        css?: string[];
        dragRelation?: false | "strong" | "weak" | null;
        events?: readonly (keyof Events)[];
        name: string;
        props?: readonly (keyof Props)[];
        updateRect?: boolean;
        className?(moveable: any): string;
        drag?(moveable: any, e: any): any;
        dragAfter?(moveable: any, e: any): any;
        dragControl?(moveable: any, e: any): any;
        dragControlAfter?(moveable: any, e: any): any;
        dragControlCondition?(moveable: any, e: any): boolean;
        dragControlEnd?(moveable: any, e: any): any;
        dragControlStart?(moveable: any, e: any): any;
        dragEnd?(moveable: any, e: any): any;
        dragGroup?(moveable: any, e: any): any;
        dragGroupCondition?(moveable: any, e: any): boolean;
        dragGroupControl?(moveable: any, e: any): any;
        dragGroupControlCondition?(moveable: any, e: any): boolean;
        dragGroupControlEnd?(moveable: any, e: any): any;
        dragGroupControlStart?(moveable: any, e: any): any;
        dragGroupEnd?(moveable: any, e: any): any;
        dragGroupStart?(moveable: any, e: any): any;
        dragStart?(moveable: any, e: any): any;
        mouseEnter?(moveable: any, e: any): any;
        mouseGroupEnter?(moveable: any, e: any): any;
        mouseGroupLeave?(moveable: any, e: any): any;
        mouseLeave?(moveable: any, e: any): any;
        pinch?(moveable: any, e: OnPinch): any;
        pinchEnd?(moveable: any, e: OnPinchEnd): any;
        pinchGroup?(moveable: any, e: OnPinch): any;
        pinchGroupEnd?(moveable: any, e: OnPinchEnd): any;
        pinchGroupStart?(moveable: any, e: OnPinchStart): any;
        pinchStart?(moveable: any, e: OnPinchStart): any;
        render?(moveable: any, renderer: Renderer): any;
        request?(moveable: any): AbleRequester;
        requestChildStyle?(): string[];
        requestStyle?(): string[];
        unset?(moveable: any): any;
        viewClassName?(moveable: any): string;
    }

    Type Parameters

    • Props extends IObject<any> = IObject<any>
    • Events extends IObject<any> = IObject<any>
    Index
    ableGroup?: string
    always?: boolean
    canPinch?: boolean
    css?: string[]
    dragRelation?: false | "strong" | "weak" | null

    Check how related to drag

    events?: readonly (keyof Events)[]
    name: string
    props?: readonly (keyof Props)[]
    updateRect?: boolean
    • If you use group, you can request child style. Specify the name of the style in camel case. You can check it with moveable.state.style

      Returns string[]

      ["borderRadius", "top", "left"]
      
    • You can request style. Specify the name of the style in camel case. You can check it with moveable.state.style

      Returns string[]

      ["borderRadius", "top", "left"]
      
    • You can specify the class name to be added to the Moveable View Container

      Parameters

      • moveable: any

      Returns string