- derive TabProps from SharedEnhancedButtonProps (TabProps are passed… (#9218)

* - derive TabProps from SharedEnhancedButtonProps (TabProps are passed down to EnhancedButton inside)- Change signature of "onTouchTap" handler in TabProps to suit overridden "onTouchTap" in SharedEnhancedButtonProps

* - fixed TabProps onTouchTap signature, added disabled property
This commit is contained in:
Felix
2016-05-14 18:18:15 +02:00
committed by Masahiro Wakame
parent b2286eb5f9
commit ac927d3148

View File

@@ -1587,18 +1587,20 @@ declare namespace __MaterialUI {
export class Tabs extends React.Component<TabsProps, {}> {
}
interface TabProps extends React.Props<Tab> {
interface TabProps extends SharedEnhancedButtonProps<Tab> {
className?: string;
icon?: React.ReactNode;
label?: React.ReactNode;
onActive?: (tab: Tab) => void;
onTouchTap?: (value: any, e: TouchTapEvent, tab: Tab) => void;
onTouchTap?: (value: any, e?: TouchTapEvent, tab?: Tab) => void;
selected?: boolean;
style?: React.CSSProperties;
value?: any;
width?: string;
disabled?: boolean;
}
export class Tab extends React.Component<TabProps, {}> {
export class Tab extends React.Component<
TabProps, {}> {
}
}