Sha256: ed49d9172e836d8409e05e542315cfb85727734931885b6280f67ac276465b96

Contents?: true

Size: 691 Bytes

Versions: 5

Compression:

Stored size: 691 Bytes

Contents

import React from 'react';

export default class Tooltip extends React.Component {
    static TTProps = [
        'id', 'placement', 'positionLeft', 'positionTop',
        'arrowOffsetLeft', 'arrowOffsetTop'
    ];
    render() {
        const ttprops = _.pick(this.props, ...this.TTProps);
        const tooltip = <BS.Tooltip {...ttprops}>
            {this.props.content}
        </BS.Tooltip>;
        return (
            <BS.OverlayTrigger
                overlay={tooltip}
                placement="left"
                container={this.context.viewport.hippo}
                {...this.props}>
                {this.props.children}
            </BS.OverlayTrigger>
        );
    }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hippo-fw-0.9.5 client/hippo/components/shared/Tooltip.jsx
hippo-fw-0.9.4 client/hippo/components/shared/Tooltip.jsx
hippo-fw-0.9.3 client/hippo/components/shared/Tooltip.jsx
hippo-fw-0.9.2 client/hippo/components/shared/Tooltip.jsx
hippo-fw-0.9.1 client/hippo/components/shared/Tooltip.jsx