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

jqxButtons

  • Default Functionality
  • ToggleButton
  • RepeatButton
  • LinkButton
  • DropDown Button
  • CheckBox
  • RadioButton
  • SwitchButton
  • Button Group
  • Button Group Templates
  • Buttons with Images
  • Buttons Text Position
  • Buttons Image Position
  • Fluid Size
  • Button Templates
  • Right to Left Layout
Theme:
  • Demo
  • App.htm
  • App.js
React Button Image Positioning
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title id='Description'>
        React Button Image Positioning
    </title>
    <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/jqxbuttons.js"></script>
    <script type="text/javascript" src="../scripts/demos.js"></script>
</head>
<body>
    <div class="example-description" style="margin-bottom:3em">
        React Button Image Positioning
    </div>
    <div id="app"></div>
    <script src="../build/button_imageposition.bundle.js"></script>
</body>
</html>

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

import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';

class App extends React.Component {
    render() {

        return (
            <div>
                <table>
                    <tr>
                        <td>Top</td>
                        <td>Top Left</td>
                        <td>Top Right</td>
                    </tr>
                    <tr>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'top'} />
                        </td>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'topLeft'} />
                        </td>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'topRight'} />
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td>Center</td>
                        <td>Left</td>
                        <td>Right</td>
                    </tr>
                    <tr>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'center'} />
                        </td>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'left'} />
                        </td>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'right'} />
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td>Bottom</td>
                        <td>Bottom Left</td>
                        <td>Bottom Right</td>
                    </tr>
                    <tr>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'bottom'} />
                        </td>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'bottomLeft'} />
                        </td>
                        <td>
                            <JqxButton width={120} height={50} imgSrc={'../images/twitter.png'} imgPosition={'bottomRight'} />
                        </td>
                    </tr>
                </table>
            </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.