jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
58 lines (53 loc) • 2.97 kB
HTML
<html lang="en">
<head>
<title id='Description'>Tree Custom Element RightToLeftLayout</title>
<meta name="description" content="This is an example of right to left support of the Tree Custom Element." />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" />
<link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" />
<link rel="stylesheet" href="../../../styles/demos.css" type="text/css" />
<script type="text/javascript" src="../../../scripts/webcomponents-lite.min.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcore.elements.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/jqxpanel.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxtree.js"></script>
<script src="../../../scripts/demos.js"></script>
<script type="text/javascript">
var data =
[
{
icon: '../../../images/mailIcon.png', label: 'Mail', expanded: true, items: [
{ icon: '../../../images/calendarIcon.png', label: 'Calendar' },
{ icon: '../../../images/contactsIcon.png', label: 'Contacts', selected: true }
]
},
{
icon: '../../../images/folder.png', label: 'Inbox', expanded: true, items: [
{ icon: '../../../images/folder.png', label: 'Admin' },
{ icon: '../../../images/folder.png', label: 'Corporate' },
{ icon: '../../../images/folder.png', label: 'Finance' },
{ icon: '../../../images/folder.png', label: 'Other' },
]
},
{ icon: '../../../images/recycle.png', label: 'Deleted Items' },
{ icon: '../../../images/notesIcon.png', label: 'Notes' },
{ iconsize: 14, icon: '../../../images/settings.png', label: 'Settings' },
{ icon: '../../../images/favorites.png', label: 'Favorites' }
];
JQXElements.settings['treeSettings'] =
{
source: data, rtl: true
};
</script>
</head>
<body>
<div class="example-description">
In this sample the Tree Custom Element is displayed in Right-to-Left mode.
To display the widget in Right-to-Left mode, you need to set its "rtl" property to true.
</div>
<jqx-tree settings="treeSettings"></jqx-tree>
</body>
</html>