mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
feat(data-table): add ToolbarMenu
Requires menuRef from OverflowMenu to be exported.
This commit is contained in:
parent
0e9f600672
commit
c39427670a
10 changed files with 305 additions and 72 deletions
26
types/index.d.ts
vendored
26
types/index.d.ts
vendored
|
@ -662,6 +662,12 @@ export class ComboBox extends CarbonSvelteComponent {
|
|||
* @default null
|
||||
*/
|
||||
ref?: null | HTMLInputElement;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the list HTML element
|
||||
* @default null
|
||||
*/
|
||||
listRef?: null | HTMLDivElement;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -2929,6 +2935,18 @@ export class OverflowMenu extends CarbonSvelteComponent {
|
|||
* Set an id for the button element
|
||||
*/
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the trigger button element
|
||||
* @default null
|
||||
*/
|
||||
buttonRef?: null | HTMLButtonElement;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the overflow menu element
|
||||
* @default null
|
||||
*/
|
||||
menuRef?: null | HTMLUListElement;
|
||||
};
|
||||
|
||||
$$slot_def: { menu: {}; default: {} };
|
||||
|
@ -5124,6 +5142,14 @@ export class ToolbarContent extends CarbonSvelteComponent {
|
|||
$$slot_def: { default: {} };
|
||||
}
|
||||
|
||||
export class ToolbarMenu extends CarbonSvelteComponent {
|
||||
$$slot_def: { default: {} };
|
||||
}
|
||||
|
||||
export class ToolbarMenuItem extends CarbonSvelteComponent {
|
||||
$$slot_def: { default: {} };
|
||||
}
|
||||
|
||||
export class ToolbarSearch extends CarbonSvelteComponent {
|
||||
$$prop_def: {
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue