Skip to content

Add board sidebar item wrapper

Axel García requested to merge add-board-sidebar-item-wrapper into master

What does this MR do?

This component would wrap any sidebar item, with this API:

<!-- the `ref` is for `$refs.sidebarItem.collapse()` -->
<board-editable-item
  ref="sidebarItem"
  :title="__('Sidebar item title')"
  :loading="isLoading"
  :can-update="userCanUpdate"
  @open="editModeOn = true"
  @closed="editModeOn = false"
  @changed="editModeOn = $event"
>
  <template #collapsed>
    Selected value is {{ selectedValue }}
  </template>

  <!-- shown when editing -->
  <template>
    <custom-item-select v-model="selectedValue" />
  </template>
</board-editable-item>

Screenshots

Used with assignees
5Q1C8Np7Xm

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Axel García

Merge request reports

Loading