Skip to content

Commit

Permalink
feat(settings): export parts for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Jul 17, 2024
1 parent 06b4eb7 commit 9fc4b01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cosmoz-omnitable-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ export default css`
width: 0px;
}
:host([mini]) cosmoz-omnitable-settings::part(columns){
:host([mini]) cosmoz-omnitable-settings::part(columns) {
display:none;
}
`;
7 changes: 5 additions & 2 deletions lib/settings/cosmoz-omnitable-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,13 @@ const SettingsUI = (host) => {
class="heading"
?data-opened=${opened.group}
@click=${() => setOpened((c) => ({ ...c, group: !c.group }))}
part="groups groups-heading"
>
${_('Group on')} ${arrow}
</div>
<cosmoz-collapse ?opened=${opened.group}> ${group()} </cosmoz-collapse>
<cosmoz-collapse ?opened=${opened.group} part="groups groups-heading"
>${group()}</cosmoz-collapse
>
</div>
${when(
Expand Down Expand Up @@ -157,7 +160,7 @@ const Settings = ({ config, newLayout }) => html`
)}
${when(config?.badge, () => html`<div class="badge" slot="button"></div>`)}
<cosmoz-omnitable-settings-ui
exportparts="columns"
exportparts="columns, groups"
.config=${config}
></cosmoz-omnitable-settings-ui>
</cosmoz-dropdown>
Expand Down

0 comments on commit 9fc4b01

Please sign in to comment.