Skip to content

Commit 9fe967f

Browse files
committed
Exposed pf-list-group-item
1 parent f1bee3f commit 9fe967f

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
55
### Added
66
- Pass all attributes, listeners, classes and styles to the dom elements defined in all functional components.
77
- Added style for labels with remove button.
8+
- Exposed `pf-list-group-item`.
89

910
### Changed
1011
- Styled thin scrollbars.

src/components/ListGroupItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="list-group-item" :class="[stateClass]" :style="{cursor: expandable ? 'pointer' : 'inherit'}" @click="toggle">
2+
<div class="list-group-item" :class="[stateClass, {'list-view-pf-stacked': stacked}]" :style="{cursor: expandable ? 'pointer' : 'inherit'}" @click="toggle">
33
<div v-if="expandable && $slots.expansion" class="list-view-pf-expand" :class="{active: expanded}">
44
<pf-icon name="fa-angle-right" :class="{'fa-angle-down': expanded}"/>
55
</div>
@@ -42,6 +42,7 @@ export default {
4242
4343
props: {
4444
expandable: Boolean,
45+
stacked: Boolean,
4546
index: {
4647
type: [String, Number],
4748
},

src/components/ListView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:index="i"
99
:selectable="selectable"
1010
:expandable="expandable"
11-
:class="{'list-view-pf-stacked': stacked}"
11+
:stacked="stacked"
1212
>
1313
<slot :row="row" :index="i"/>
1414
<template slot="action" v-if="$slots.action || $scopedSlots.action">

src/components/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import Select from './Select.vue';
2929
import Option from './Option.vue';
3030
import ListView from './ListView.vue';
3131
import ListItem from './ListItem.vue';
32+
import ListGroupItem from './ListGroupItem.vue';
3233
import ListItemAdditionalInfo from './ListItemAdditionalInfo.vue';
3334
import Modal from './Modal.vue';
3435
import Icon from './Icon';
@@ -66,6 +67,7 @@ export {
6667
Option,
6768
ListView,
6869
ListItem,
70+
ListGroupItem,
6971
ListItemAdditionalInfo,
7072
Modal,
7173
Icon,

0 commit comments

Comments
 (0)