Interface ButtonGroupControlOptions

interface ButtonGroupControlOptions {
    barCurSelectId?: string;
    barSelectMode?: boolean;
    buttons: {
        checked?: boolean;
        classList?: string[];
        html?: string;
        icon?: string;
        id: string;
        onclick?: Function;
        round?: boolean;
        style?: Partial<CSSStyleDeclaration>;
        title?: string;
        toggle?: boolean;
    }[];
    direction?: "column" | "row";
    lightTheme?: boolean;
}

Properties

barCurSelectId?: string
barSelectMode?: boolean
buttons: {
    checked?: boolean;
    classList?: string[];
    html?: string;
    icon?: string;
    id: string;
    onclick?: Function;
    round?: boolean;
    style?: Partial<CSSStyleDeclaration>;
    title?: string;
    toggle?: boolean;
}[]

Type declaration

  • Optional checked?: boolean

    是否选中

  • Optional classList?: string[]

    类名

  • Optional html?: string

    html (icon为空时有效)

  • Optional icon?: string

    图标

  • id: string
  • Optional onclick?: Function

    点击事件回调

  • Optional round?: boolean

    圆角

  • Optional style?: Partial<CSSStyleDeclaration>

    样式

  • Optional title?: string

    提示

  • Optional toggle?: boolean

    是否选中开关

direction?: "column" | "row"
lightTheme?: boolean