Skip to content

Commit

Permalink
release(toolbar): v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Dec 23, 2024
1 parent 61c81b2 commit 566dfec
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 235 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@
},
"toolbar": {
"react": true,
"version": "0.7.1",
"version": "0.8.0",
"style": true,
"icon": false,
"test": true,
Expand Down
18 changes: 17 additions & 1 deletion src/toolbar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,22 @@ toolbar.appendText('Test')

## Api

### appendButton(content: string | HTMLElement, handler: AnyFn, state?: IButtonState): LunaToolbarButton

Append button.

### appendHtml(html: string | HTMLElement): LunaToolbarHtml

Append html.

### appendInput(key: string, value: string, placeholder?: string): ToolbarInput
### appendInput(key: string, value: string, placeholder?: string): LunaToolbarInput

Append text input.

### appendNumber(key: string, value: number, options?: INumberOptions): LunaToolbarNumber

Append number.

### appendSelect(key: string, value: string, options: PlainObj<string>): LunaToolbarSelect

Append select.
Expand All @@ -66,3 +74,11 @@ Clear all.
### remove(item: LunaToolbarItem): void

Remove item.

## Types

### INumberOptions

* max(number): Max value.
* min(number): Min value.
* step(number): Interval between legal numbers.
2 changes: 1 addition & 1 deletion src/toolbar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toolbar",
"version": "0.7.1",
"version": "0.8.0",
"description": "Application toolbar",
"luna": {
"react": true
Expand Down
Loading

0 comments on commit 566dfec

Please sign in to comment.