Interface LayerConfigOptions

interface LayerConfigOptions {
    anim?: number;
    area?: LayerArea;
    ariaLabel?: string;
    btn?: string | false | string[];
    btn2?: ((index, layero) => boolean | void);
    btnAlign?: string;
    cancel?: ((index, layero) => boolean | void);
    change?: ((index) => void);
    className?: string;
    closeBtn?: boolean | 0 | 1 | 2;
    content?: string | HTMLElement | [string, string?];
    end?: (() => void);
    fixed?: boolean;
    follow?: string | HTMLElement;
    formType?: 0 | 1 | 2;
    icon?: number;
    id?: string;
    injectStyles?: boolean;
    isOutAnim?: boolean;
    maxWidth?: number;
    maxlength?: number;
    maxmin?: boolean;
    minStack?: boolean;
    move?: string | boolean;
    moveType?: 0 | 1;
    offset?: LayerOffset;
    resize?: boolean;
    scrollbar?: boolean;
    shade?: LayerShade;
    shadeClose?: boolean;
    shadeStyle?: string;
    skin?: string;
    styleNonce?: string;
    success?: ((layero, index) => void);
    tab?: LayerTabItem[];
    time?: number;
    tips?: LayerTipDirection | [LayerTipDirection, string];
    title?: LayerTitle;
    type?: LayerType;
    value?: string;
    yes?: ((index, layero) => void);
    zIndex?: number;
}

Hierarchy

Properties

anim?: number
area?: LayerArea
ariaLabel?: string
btn?: string | false | string[]
btn2?: ((index, layero) => boolean | void)

Type declaration

    • (index, layero): boolean | void
    • Parameters

      • index: number
      • layero: HTMLElement

      Returns boolean | void

btnAlign?: string
cancel?: ((index, layero) => boolean | void)

Type declaration

    • (index, layero): boolean | void
    • Parameters

      • index: number
      • layero: HTMLElement

      Returns boolean | void

change?: ((index) => void)

Type declaration

    • (index): void
    • Parameters

      • index: number

      Returns void

className?: string
closeBtn?: boolean | 0 | 1 | 2
content?: string | HTMLElement | [string, string?]
end?: (() => void)

Type declaration

    • (): void
    • Returns void

fixed?: boolean
follow?: string | HTMLElement
formType?: 0 | 1 | 2
icon?: number
id?: string
injectStyles?: boolean
isOutAnim?: boolean
maxWidth?: number
maxlength?: number
maxmin?: boolean
minStack?: boolean
move?: string | boolean
moveType?: 0 | 1
offset?: LayerOffset
resize?: boolean
scrollbar?: boolean
shade?: LayerShade
shadeClose?: boolean
shadeStyle?: string
skin?: string
styleNonce?: string
success?: ((layero, index) => void)

Type declaration

    • (layero, index): void
    • Parameters

      • layero: HTMLElement
      • index: number

      Returns void

tab?: LayerTabItem[]
time?: number
title?: LayerTitle
type?: LayerType
value?: string
yes?: ((index, layero) => void)

Type declaration

    • (index, layero): void
    • Parameters

      • index: number
      • layero: HTMLElement

      Returns void

zIndex?: number