Skip to content

Commit

Permalink
feat(listitem): Expose the list item labels to allow customization
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-piccolino authored and iBelieve committed Dec 30, 2015
1 parent b008793 commit c65485a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/Material/ListItems/Standard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ BaseListItem {
property alias content: contentItem.children

property alias itemLabel: label
property alias itemValueLabel: valueLabel

property alias textColor: label.color
property alias iconColor: icon.color
Expand Down
4 changes: 4 additions & 0 deletions modules/Material/ListItems/Subtitled.qml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ BaseListItem {
property alias secondaryItem: secondaryItem.children
property alias content: contentItem.children

property alias itemLabel: label
property alias itemSubLabel: subLabel
property alias itemValueLabel: valueLabel

interactive: !contentItem.showing

dividerInset: actionItem.visible ? listItem.height : 0
Expand Down

0 comments on commit c65485a

Please sign in to comment.