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

jqxToolbar

  • Default Functionality
  • Resizable Toolbar
  • Non-minimizable Tools
  • Button Groups in Toolbar
  • Cascading ComboBoxes in Toolbar
  • Settings
  • Tool events
  • Fluid Size
  • Right to Left Layout
Theme:
  • Demo
  • App.htm
  • App.js
ReactJS Toolbar demo. Some tools in jqxToolBar can be made non-minimizable and some - not to appear in the pop-up menu when they are minimized.
Resize the window to minimize or restore tools. The comboboxis non-minimizable and the input does not appear in the pop-up menu when minimized.
Resizable jqxToolBar
Times New Roman
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title id='Description'>
        ReactJS Toolbar demo. Some tools in jqxToolBar can be made non-minimizable and some
        - not to appear in the pop-up menu when they are minimized.
    </title>
	<meta name="description" content="This React Toolbar demo showcases how to create a toolbar"/>			
    <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="../jqwidgets/jqxscrollbar.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxlistbox.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxdropdownlist.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxcombobox.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxinput.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxwindow.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxtoolbar.js"></script>
    <script type="text/javascript" src="../scripts/demos.js"></script>
    <style type="text/css">
        .buttonIcon
        {
            margin: -5px 0 0 -3px;
            width: 16px;
            height: 17px;
        }
    </style>
</head>
<body>
    <div class="example-description" style="margin-bottom:3em">
        ReactJS Toolbar demo. Some tools in jqxToolBar can be made non-minimizable and some
        - not to appear in the pop-up menu when they are minimized.
    </div>
    <div id="app"></div>
    <script src="../build/toolbar_nonminimizabletools.bundle.js"></script>
</body>
</html>

import React from 'react';import ReactDOM from 'react-dom';import JqxToolBar from '../../../jqwidgets-react/react_jqxtoolbar.js';import JqxWindow from '../../../jqwidgets-react/react_jqxwindow.js';class App extends React.Component {
    render () {
        let tools = 'toggleButton toggleButton toggleButton | toggleButton | dropdownlist combobox | input';
        let theme = ''
        let initTools = (type, index, tool, menuToolIninitialization) => {
            let icon = document.createElement('div');
            if (type == 'toggleButton') {
                icon.className = 'jqx-editor-toolbar-icon jqx-editor-toolbar-icon-' + theme + ' buttonIcon ';
            }
            switch (index) {
                case 0:
                    icon.className += 'jqx-editor-toolbar-icon-bold jqx-editor-toolbar-icon-bold-' + theme;
                    icon.setAttribute('title', 'Bold');
                    tool[0].appendChild(icon);
                    tool[0].firstChild.style.margin = 0;
                    break;
                case 1:
                    icon.className += 'jqx-editor-toolbar-icon-italic jqx-editor-toolbar-icon-italic-' + theme;
                    icon.setAttribute('title', 'Italic');
                    tool[0].appendChild(icon);
                    tool[0].firstChild.style.margin = 0;
                    break;
                case 2:
                    icon.className += 'jqx-editor-toolbar-icon-underline jqx-editor-toolbar-icon-underline-' + theme;
                    icon.setAttribute('title', 'Underline');
                    tool[0].appendChild(icon);
                    tool[0].firstChild.style.margin = 0;
                    break;
                case 3:
                    tool.jqxToggleButton({ width: 80, toggled: true });
                    tool[0].innerText = 'Enabled';
                    tool.on('click', () =>
                    {
                        let toggled = tool.jqxToggleButton('toggled');
                        if (toggled)
                        {
                            tool.text('Enabled');
                        } else
                        {
                            tool.text('Disabled');
                        }
                    });
                    break;
                case 4:
                    let dropDownListWidth;
                    if (menuToolIninitialization) {
                        // specific setting for minimized tool
                        dropDownListWidth = "100%";
                    } else {
                        dropDownListWidth = 130;
                    }
                    tool.jqxDropDownList({ 
                        width: dropDownListWidth, source: ["<span style='font-family: Courier New;'>Courier New</span>", "<span style='font-family: Times New Roman;'>Times New Roman</span>", "<span style='font-family: Verdana;'>Verdana</span>"], selectedIndex: 1 });
                    break;
                case 5:
                    let comboBoxWidth;
                    if (menuToolIninitialization) {
                        // specific setting for minimized tool
                        comboBoxWidth = "100%";
                    } else {
                        comboBoxWidth = 50;
                    }
                    tool.jqxComboBox({ width: comboBoxWidth, source: [8, 9, 10, 11, 12, 14, 16, 18, 20], selectedIndex: 3 });
                    tool[0].style.borderColor = '#CC0000';
                    return { minimizable: false };
                case 6:
                    tool.jqxInput({ width: 200, placeHolder: "Type here to search..." });
                    tool[0].style.borderColor = '#EE8D4D';
                    return { menuTool: false };
            }
        }
        return (
            <div style={{ fontSize: 'small', fontFamily: 'Verdana' }}>

                <div>
                    Resize the window to minimize or restore tools. The <span style={{color: '#CC0000'}}>combobox</span>
                    is non-minimizable and the <span style={{color: '#EE8D4D'}}>input</span> does not appear
                    in the pop-up menu when minimized.
                </div>
                <JqxWindow ref='jqxWindow'
                    width={700} minWidth={250} height={250} position={{ x: 5, y: 60 }}
                >
                    <div>
                        Resizable jqxToolBar
                    </div>
                    <div>
                        <JqxToolBar
                            width={'100%'} height={35}
                            minimizeWidth={200}
                            initTools={initTools} tools={tools}
                        />
                    </div>
                </JqxWindow>

            </div>            
        )
    }
}

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

Times New Roman
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.