Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Overview

palette-button is a set of buttons that can expand and collapse

Usage

see example

Option

  • content: the text content of the main button
  • offset: the offset arc of the fan-shaped area
  • direction: the direction of the fan-shaped area, belongs to one of the ['lt', 't', 'rt', 'r', 'rb', 'b', 'lb', 'l']
  • radius: the radius of the fan-shaped area
  • mainButtonStyle: set the style of the main button

Method

  • toggle: toggle between expand and collapse
  • expand: expand all sub buttons
  • collapse: collapse all sub buttons

Event

  • expand: begin expand sub buttons
  • expanded: all sub buttons has been expanded
  • collapse: begin collapse sub buttons