跳到主要内容

bn.setControlButton

setControlButton(params): Promise<{}>

description Set Control Button Icon Color / Border Color / Background Color

remark supported jssdk > 4.33.0

example

await bn.setControlButton({
iconColor: string
borderColor: string
backgroundColor: string
})

Parameters

NameType
paramsCmdSetControlButtonOptions

Returns

Promise<{}>


Interface: CmdSetControlButtonOptions

NameTypeDescription
iconColorstring
borderColorstring
backgroundColorstring