Tabs
Extends:
Saiku <Tabs /> component. It requires a createContent function, it is responsible for populate the tab content, whenever the '+' button is pressed.
Example:
function myContent() {
return (<h1>Tab Content</h1>);
}
<Tabs createContent={myContent}/>
Constructor Summary
| Public Constructor | ||
| public |
constructor(props: *) |
|
Method Summary
| Public Methods | ||
| public |
Method automatically called when React already built and mounted the component on a dom element. |
|
| public |
render(): * |
|
| public |
renderTabButtons(tab: Object, index: number): * Helper method called for each tab in order to render its button. |
|
| public |
renderTabPanels(tab: Object, index: number): * Helper method called for each tab in order to render its content. |
|
Public Constructors
public constructor(props: *) source
Params:
| Name | Type | Attribute | Description |
| props | * |
Public Methods
public componentDidMount() source
Method automatically called when React already built and mounted the component on a dom element. In this case, this method will create the tabs' first tab, filled with the createContent function's content.
public renderTabButtons(tab: Object, index: number): * source
Helper method called for each tab in order to render its button.
Return:
| * |