mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
complete right panel
This commit is contained in:
parent
614ca9d36e
commit
75e217c03e
9 changed files with 269 additions and 69 deletions
|
@ -11,7 +11,11 @@
|
|||
rightPanel.forEach((item, index) => {
|
||||
orderedRightPanel[index] = undefined;
|
||||
if (item.action) {
|
||||
if (Object.keys(leftPanelActions).indexOf(item.action.charAt(0).toLowerCase() + item.action.slice(1)) === -1) {
|
||||
if (
|
||||
Object.keys(leftPanelActions).indexOf(
|
||||
item.action.charAt(0).toLowerCase() + item.action.slice(1)
|
||||
) === -1
|
||||
) {
|
||||
orderedRightPanel[customActions] = rightPanel[index];
|
||||
customActions += 1;
|
||||
}
|
||||
|
@ -41,6 +45,6 @@
|
|||
|
||||
<div class={cx('--header__global')}>
|
||||
{#each orderedRightPanel as action, index}
|
||||
<ActionGeneric {action} />
|
||||
<ActionGeneric {action} on:inputSearch />
|
||||
{/each}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue