Skip to content

Commit

Permalink
docs(): update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch committed Sep 28, 2021
1 parent d13e24b commit 91a0d8e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/.scripts/components.script.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ function transformScripts(component) {
`export function ${camelize(component.tag)}(
balSnackbarController,
balToastController,
balModalController,
deepReady,
BalTableButtonRenderer,
BalTableTagRenderer,
BalTableTextRenderer
Expand Down
4 changes: 3 additions & 1 deletion docs/src/.vuepress/components/docs-component-script.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<script>
import * as BalComponentScripts from '../generated/components'
import { balSnackbarController, balToastController } from '../lib/dist'
import { balSnackbarController, balToastController, balModalController, deepReady } from '../lib/dist'
import {
BalTableButtonRenderer,
BalTableTagRenderer,
Expand Down Expand Up @@ -50,6 +50,8 @@ export default {
fn(
balSnackbarController,
balToastController,
balModalController,
deepReady,
BalTableButtonRenderer,
BalTableTagRenderer,
BalTableTextRenderer,
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/foundation/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Each column will have an equal width, no matter the number of columns.
<div class="column is-full has-background-blue has-text-white">Full column</div>
<div class="column is-half has-background-primary has-text-white">Half column</div>
<div class="column is-half has-background-success has-text-white">Half column</div>
<div class="column is-third has-background-warning has-text-white">1 Third column</div>
<div class="column is-one-third has-background-warning has-text-white">1 Third column</div>
<div class="column is-two-thirds has-background-danger has-text-white">2 Third column</div>
</div>
</docs-demo>
Expand All @@ -52,7 +52,7 @@ Each column will have an equal width, no matter the number of columns.
<div class="column is-full has-background-blue has-text-white">Full column</div>
<div class="column is-half has-background-primary has-text-white">Half column</div>
<div class="column is-half has-background-success has-text-white">Half column</div>
<div class="column is-third has-background-warning has-text-white">1 Third column</div>
<div class="column is-one-third has-background-warning has-text-white">1 Third column</div>
<div class="column is-two-thirds has-background-danger has-text-white">2 Third column</div>
</div>
```
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ export namespace Components {
* Accepted MIME-Types like `image/png,image/jpeg`.
*/
"accept": string;
"clear": () => Promise<void>;
/**
* If `true` the button is disabled
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ export class FileUpload {
})
}

/**
* Sets the file list to an empty list
*/
@Method()
async clear(): Promise<void> {
this.files = []
Expand Down

0 comments on commit 91a0d8e

Please sign in to comment.