Skip to content

Commit

Permalink
add support for non-icon List ItemMeta prateekbh#1337
Browse files Browse the repository at this point in the history
  • Loading branch information
fopina committed Oct 8, 2019
1 parent 2a24aa3 commit 74ff4c3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ts/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,25 @@ export class ListItemMeta extends ListItemGraphic {
protected componentName = 'list-item__meta';
}

export interface IListItemMetaTextProps {}
export interface IListItemMetaTextState {}

export class ListItemMetaText extends MaterialComponent<
IListItemMetaTextProps,
IListItemMetaTextState
> {
protected componentName = 'list-item__meta'
protected mdcProps = []

protected materialDom(props) {
return (
<span {...props} ref={this.setControlRef} role="presentation">
{props.children}
</span>
);
}
}

export interface IListDividerProps {
inset?: boolean;
}
Expand Down Expand Up @@ -181,6 +200,7 @@ export default class extends List {
public static readonly LinkItem = ListLinkItem;
public static readonly ItemGraphic = ListItemGraphic;
public static readonly ItemMeta = ListItemMeta;
public static readonly ItemMetaText = ListItemMetaText;
public static readonly Divider = ListDivider;
public static readonly TextContainer = ListTextContainer;
public static readonly PrimaryText = ListPrimaryText;
Expand Down

0 comments on commit 74ff4c3

Please sign in to comment.