mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
rename show to active
This commit is contained in:
parent
7132cd2dcc
commit
8820435041
1 changed files with 2 additions and 2 deletions
|
@ -10,14 +10,14 @@
|
|||
* Set to `true` to show the toolbar regardless of row selection
|
||||
* @type {boolean}
|
||||
*/
|
||||
export let show = false;
|
||||
export let active = false;
|
||||
|
||||
import { onMount, getContext } from "svelte";
|
||||
import Button from "../Button/Button.svelte";
|
||||
|
||||
let batchSelectedIds = [];
|
||||
|
||||
$: showActions = batchSelectedIds.length > 0 || show;
|
||||
$: showActions = batchSelectedIds.length > 0 || active;
|
||||
|
||||
const ctx = getContext("DataTable");
|
||||
const unsubscribe = ctx.batchSelectedIds.subscribe((value) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue