jQuery UI Widgets › Forums › Gauges and Maps › TreeMap › tree checkbox
Tagged: checkbox, Tree, tree checkbox
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 9 years, 9 months ago.
-
Authortree checkbox Posts
-
Hi, i’m using your plugin, i included java Script files using Cakephp-2.5 method and directory structure.. i placed checkbox-plugin named folder insided js in webroot.
echo $this->Html->script(“checkbox-plugin/scripts/jquery-1.11.1.min”);
echo $this->Html->script(“checkbox-plugin/jqxcore”);
echo $this->Html->script(“checkbox-plugin/jqxbuttons”);
echo $this->Html->script(“checkbox-plugin/jqxscrollbar”);
echo $this->Html->script(“checkbox-plugin/jqxpanel”);
echo $this->Html->script(“checkbox-plugin/jqxtree”);
echo $this->Html->script(“checkbox-plugin/jqxcheckbox”);and css file in webroot/css/checkbox-style folder as following , you can see
echo $this->Html->css(‘checkbox-style/jqx.base’);in index.ctp
<script type=”text/javascript”>
$(document).ready(function () {
// Create jqxTree
// create jqxTree
$(‘#jqxTree’).jqxTree({ height: ‘400px’, hasThreeStates: true, checkboxes: true, width: ‘330px’});
$(‘#jqxTree’).css(‘visibility’, ‘visible’);
$(‘#jqxCheckBox’).jqxCheckBox({ width: ‘200px’, height: ’25px’, checked: true });
$(‘#jqxCheckBox’).on(‘change’, function (event) {
var checked = event.args.checked;
$(‘#jqxTree’).jqxTree({ hasThreeStates: checked });
});
$(“#jqxTree”).jqxTree(‘selectItem’, $(“#home”)[0]);
});</script>
i’m creating tree usinh cakephp helper . it generates ul li list
<body>
<div id=’jqxTree’>
<?phpecho $this->Tree->generate($parents, array( ‘maxDepth’=>’5’));
?>
</div>
</body>no checkboxes or checkbox- tree is generated. tell me where i’m doing mistake.
Hello imran,
For using jqxTree with Checkboxes, please take a look at: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtree/checkboxes.htm?arctic.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comactually checked that and followed documentation given for that. but still nothing is shown (check box).
In Short; folder structure can be changed or not ?
Detail;
i just wanna ask, I have placed your .js files in different folder than your folder structure because cakephp required to place .js file in “webroot/js” folder and css files in “webroot/css” folder. while in your project css file is inside “jqwidgets” folders. may be this is issue if folder structure is necessary to keep.Hello imran,
It’s only required the PATH to the files to be correct.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.