Skip to content

Commit

Permalink
docs: wt-table-actions-docs [WTEL-3960]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Nov 27, 2023
1 parent 21dfa8b commit f797fc7
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 24 deletions.
20 changes: 20 additions & 0 deletions docs/pages/webitel-ui/components/wt-table-actions/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script setup>
import Docs from './wt-table-actions-docs.vue';
import ExampleTableActions from './examples/example-table-actions.vue';
</script>

# WtTableActions

## Props
::: raw
<Docs />
:::

## Example Table Actions
::: raw
<ExampleTableActions />
:::

::: details Code
<<< ./examples/example-table-actions.vue
:::
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script setup>
const callAlert = (arg) => alert(arg);
</script>

<template>
<wt-table-actions
:icons="['import', 'export', 'filter-reset', 'column-select', 'refresh', 'settings']"
@input="callAlert"
/>
</template>

<style scoped lang="scss">
</style>
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
<template>
<section>
<h2>Table Actions</h2>
<article>
<div class="example-wrapper">
<wt-table-actions
:icons="['import', 'export', 'filter-reset', 'column-select', 'refresh', 'settings']"
/>
<pre><code class="language-html">
&lt;wt-table-actions
:icons="['import', 'export', 'filter-reset', 'column-select', 'refresh', 'settings']"
&gt;&lt;/wt-table-actions&gt;
</code></pre>
</div>
</article>
<component-props
:properties="properties"
/>
<component-events
:events="events"
/>
<component-slots />
</section>
<component-props
:properties="properties"
/>
<component-events
:events="events"
/>
<component-slots />
</template>

<script>
Expand All @@ -35,7 +20,7 @@ export default {
code: '<wt-table-actions :icons="[]"></wt-table-actions>',
type: 'Array',
options: ['import', 'export', 'filter-reset', 'column-select', 'refresh', 'settings'],
default: "['refresh']",
default: '[\'refresh\']',
},
],
events: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/wt-tooltip/wt-tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ onMounted(() => {
@extend %typo-body-2;
padding: var(--spacing-2xs) var(--spacing-xs);
color: var(--wt-tooltip-text-color);
background: var(--wt-tooltip-background-color-color);
background: var(--wt-tooltip-background-color);
border-radius: var(--border-radius);
box-shadow: var(--elevation-10);
z-index: 1000;
Expand Down

0 comments on commit f797fc7

Please sign in to comment.