| Name | Type | Default |
|
autoUpdate
# |
boolean
|
false
|
Automatically updates the panel, if its children size is changed.
import { createRoot } from 'react-dom/client';
import { useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
return (
<JqxPanel ref={myPanel} width={250} height={250} autoUpdate={true}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
disabled
# |
boolean
|
false
|
Sets or gets whether the panel is disabled.
import { createRoot } from 'react-dom/client';
import { useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
return (
<JqxPanel ref={myPanel} width={250} height={250} disabled={true}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
height
# |
string | number
|
null
|
Sets or gets the panel's height.
import { createRoot } from 'react-dom/client';
import { useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
rtl
# |
boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
import { createRoot } from 'react-dom/client';
import { useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
return (
<JqxPanel ref={myPanel} width={250} height={250} rtl={true}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
sizeMode
# |
PanelSizeMode
|
'fixed'
|
PanelSizeMode: "fixed" | "wrap"
Sets or gets the sizing mode. In the 'fixed' mode, the panel displays scrollbars, if its content requires it. In the wrap mode, the scrollbars are not displayed and the panel automatically changes its size.
Possible Values:
'fixed'
'wrap'
import { createRoot } from 'react-dom/client';
import { useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
return (
<JqxPanel ref={myPanel} width={250} height={250} sizeMode={'wrap'}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
scrollBarSize
# |
number | string
|
17
|
Sets or gets the scrollbar's size.
import { createRoot } from 'react-dom/client';
import { useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
return (
<JqxPanel ref={myPanel} width={250} height={250} scrollBarSize={20}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
theme
# |
string
|
''
|
import { createRoot } from 'react-dom/client';
import { useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
return (
<JqxPanel ref={myPanel} width={250} height={250} theme={'material'}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
width
# |
string | number
|
null
|
Sets or gets the panel's width.
import { createRoot } from 'react-dom/client';
import { useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
|
|
|
| Name | Arguments | Return Type |
|
append
# |
HTMLElement
|
|
Appends an element to the panel's content.
|
|
clearcontent
# |
None
|
|
Clears the panel's content.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.clearcontent();
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
destroy
# |
None
|
|
Destroys the widget.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.destroy();
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
focus
# |
None
|
|
Focuses the widget.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.focus();
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
getScrollHeight
# |
None
|
|
Get the scrollable height. Returns a number.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.getScrollHeight();
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
getVScrollPosition
# |
None
|
|
Get the vertical scrollbar's position. Returns a number.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.getVScrollPosition();
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
getScrollWidth
# |
None
|
|
Get the scrollable width. Returns a number.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.getScrollWidth();
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
getHScrollPosition
# |
None
|
|
Get the horizontal scrollbar's position. Returns a number.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.getHScrollPosition();
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
prepend
# |
HTMLElement
|
|
Prepends an element to the panel's content.
|
|
remove
# |
HTMLElement
|
|
Remove an element from the panel's content.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.remove(document.querySelector('li'));
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|
|
scrollTo
# |
left, top
|
|
Scroll to specific position.
import { createRoot } from 'react-dom/client';
import { useEffect, useRef } from 'react';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel';
function App() {
const myPanel = useRef<JqxPanel>(null);
useEffect(() => {
myPanel.current!.scrollTo(0, 20);
}, []);
return (
<JqxPanel ref={myPanel} width={250} height={250}>
<div style={{ margin: '10px' }}>
<h3>Early History of the Internet</h3>
</div>
<div>
<ul>
<li>1961 First packet-switching papers</li>
<li>1966 Merit Network founded</li>
<li>1966 ARPANET planning starts</li>
<li>1969 ARPANET carries its first packets</li>
<li>1970 Mark I network at NPL (UK)</li>
<li>1970 Network Information Center (NIC)</li>
<li>1971 Merit Network's packet-switched network operational</li>
<li>1971 Tymnet packet-switched network</li>
<li>1972 Internet Assigned Numbers Authority (IANA) established</li>
</ul>
</div>
</JqxPanel>
);
}
createRoot(document.querySelector('#app') as HTMLElement).render(<App />);
|