1 | # Overview
|
2 | palette-button is a set of buttons that can expand and collapse
|
3 |
|
4 | # Usage
|
5 |
|
6 | see example
|
7 |
|
8 | # Option
|
9 | - content: the text content of the main button
|
10 | - offset: the offset arc of the fan-shaped area
|
11 | - direction: the direction of the fan-shaped area, belongs to one of the ['lt', 't', 'rt', 'r', 'rb', 'b', 'lb', 'l']
|
12 | - radius: the radius of the fan-shaped area
|
13 | - mainButtonStyle: set the style of the main button
|
14 |
|
15 | # Method
|
16 | - toggle: toggle between expand and collapse
|
17 | - expand: expand all sub buttons
|
18 | - collapse: collapse all sub buttons
|
19 |
|
20 | # Event
|
21 | - expand: begin expand sub buttons
|
22 | - expanded: all sub buttons has been expanded
|
23 | - collapse: begin collapse sub buttons |
\ | No newline at end of file |