jQWidgets
  • Documentation
  • License and Pricing
  • Services
  • Community
    • Forums
    • Blogs
    • Follow Us
    • Client Login
  • About
    • About Us
    • Contact Us
    • FAQ
  • Demo
  • Download

React UI Components

  • Javascript/jQuery
  • Angular
  • Vue
  • React
  • Custom Elements
  • ASP .NET MVC
  • Showcase Demos
  • Responsive Design
  • Theme Builder
Show Demo List

React UI Components

  • jqxGrid
  • jqxTabs
  • jqxTextArea
  • jqxWindow
  • jqxKnob
  • jqxResponsivePanel
  • jqxChart
  • jqxMenu
  • jqxInput
  • jqxDocking
  • jqxGauge
  • jqxNavBar
  • jqxPivotGrid
  • jqxTree
  • jqxPasswordInput
  • jqxNotification
  • jqxBarGauge
  • jqxSortable
  • jqxScheduler
  • jqxNavigationBar
  • jqxMaskedInput
  • jqxPopOver
  • jqxExpander
  • jqxLoader
  • jqxTreeGrid
  • jqxListMenu
  • jqxComplexInput
  • jqxTooltip
  • jqxRating
  • jqxDraw
  • jqxDataTable
  • jqxToolBar
  • jqxFormattedInput
  • jqxColorPicker
  • jqxRangeSelector
  • jqxDragDrop
  • jqxTreeMap
  • jqxComboBox
  • jqxNumberInput
  • jqxScrollView
  • jqxSlider
  • jqxPanel
  • jqxEditor
  • jqxDropDownList
  • jqxDateTimeInput
  • jqxProgressBar
  • jqxScrollBar
  • jqxValidator
  • jqxRibbon
  • jqxListBox
  • jqxCalendar
  • jqxFileUpload
  • jqxSplitter
  • jqxValidator
  • jqxLayout
  • jqxButtons
  • jqxKanban
  • jqxBulletChart
  • jqxDockingLayout

jqxTooltip

  • Default Functionality
  • Tooltip Positions
  • Close on Click
  • Popover
Theme:
  • Demo
  • App.htm
  • App.js
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title id='Description'>
        ReactJS Tooltip demo. The jqxTooltip widget displays a popup message. The widget can be used in combination with any html element. Hover over the posters to see more information about the films.
    </title>
	<meta name="description" content="This React Tooltip demo showcases how to create a React Tooltip component and how to use it"/>		

    <link rel="stylesheet" href="../jqwidgets/styles/jqx.base.css" type="text/css" />

    <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxtooltip.js"></script>
    <script type="text/javascript" src="../scripts/demos.js"></script>

</head>
<body>
    <div class="example-description" style="margin-bottom:3em">
        ReactJS Tooltip demo. The jqxTooltip widget displays a popup message. The widget can be used in combination with any html element. Hover over the posters to see more information about the films.
    </div>
    <div id="app"></div>
    <script src="../build/tooltip_defaultfunctionality.bundle.js"></script>

</body>
</html>

import React from 'react';
import ReactDOM from 'react-dom';

import JqxTooltip from '../../../jqwidgets-react/react_jqxtooltip.js';

class App extends React.Component {
    render () {
        let imgStyle = { margin: 10 };
        let tooltipStyle = { float: 'left' };
        let containersStyle = { width: 400, float:'left' };
        return (
            <div style={{ width: 400 }} id="container">
                <div style={{ width: 400 }} >
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>The Amazing Spider-man</i><br /><b>Year:</b> 2012'}
                    >
                        <img style={imgStyle} src="../../../images/The_Amazng_Spider_Man.jpeg" />
                    </JqxTooltip>
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>The Avengers</i><br /><b>Year:</b> 2012'}
                    >
                        <img style={imgStyle} src="../../../images/The_Avengers.jpg" />
                    </JqxTooltip>
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>The Dark Knight Rises</i><br /><b>Year:</b> 2012'}
                    >
                        <img style={imgStyle} src="../../../images/The_Dark_Knight_Rises.jpg" />
                    </JqxTooltip>
                </div>
                <div style={containersStyle} >
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>Harry Potter and the Deathly Hallows - Part 1</i><br /><b>Year:</b> 2010'}
                    >
                        <img style={imgStyle} src="../../../images/Harry_Potter_7_Part_1.jpg" />
                    </JqxTooltip>
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>Harry Potter and the Deathly Hallows - Part 2</i><br /><b>Year:</b> 2011'}
                    >
                        <img style={imgStyle} src="../../../images/Harry_Potter_7_Part_2.jpg" />
                    </JqxTooltip>
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>Inception</i><br /><b>Year:</b> 2010'}
                    >
                        <img style={imgStyle} src="../../../images/Inception.jpg" />
                    </JqxTooltip>
                </div>
                <div style={containersStyle} >
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>Star Trek</i><br /><b>Year:</b> 2009'}
                    >
                        <img style={imgStyle} src="../../../images/Star_Trek.jpg" />
                    </JqxTooltip>
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>Star Wars</i> Episode III: <i>Revenge of the Sith</i><br /><b>Year:</b> 2005'}
                    >
                        <img style={imgStyle} src="../../../images/Star_Wars_Episode_III.jpg" />
                    </JqxTooltip>
                    <JqxTooltip style={tooltipStyle}
                      position={'mouse'} name={'movieTooltip'}
                      content={'<b>Title:</b> <i>Thor</i><br /><b>Year:</b> 2011'}
                    >
                        <img style={imgStyle} src="../../../images/Thor.jpg" />
                    </JqxTooltip>
                </div>
            </div>
        )
    }
}

ReactDOM.render(<App />, document.getElementById('app'));

jQWidgets
  • Facebook
  • Youtube
  • Google +
  • Demo
  • Download
  • Documentation
  • License and Pricing
  • Services
  • Forums
  • About
  • Terms of Use
  • Privacy Policy
  • Contact Us

jQWidgets © 2011-2019. All Rights Reserved.