mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(DataTable): useStaticWidth fix for title/description (#824)
* fix(DataTable): useStaticWidth title/description Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com> * docs(DataTable): useStaticWidth title/description Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com> * chore(deps-dev): upgrade carbon-components, sass Co-authored-by: metonym <ericyl.us@gmail.com>
This commit is contained in:
parent
7e0b8af685
commit
dbf1f225dc
8 changed files with 163 additions and 110 deletions
|
@ -7,10 +7,14 @@
|
|||
|
||||
/** Set to `true` to enable a sticky header */
|
||||
export let stickyHeader = false;
|
||||
|
||||
/** Set to `true` to use static width */
|
||||
export let useStaticWidth = false;
|
||||
</script>
|
||||
|
||||
<div
|
||||
class:bx--data-table-container="{true}"
|
||||
class:bx--data-table-container--static="{useStaticWidth}"
|
||||
class:bx--data-table--max-width="{stickyHeader}"
|
||||
{...$$restProps}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue