Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Toggle Not working 09 Jan 2017 23:57 #14930

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
I have found that when I am dragging a BOOLEAN onto a grid view, and setting option to TOGGLEABLE, its just not working.

The code is certainly being generated in the compnent, but the 'grid' icon is not actually clickable

Here is a sample of code generated in the view
<?php echo JDom::_('html.grid.bool', array(
						'commandAcl' => array('core.edit.own', 'core.edit'),
						'ctrl' => '(tablename)',
						'dataKey' => 'featured',
						'dataObject' => $row,
						'num' => $i,
						'taskYes' => 'toggle_featured',
						'viewType' => 'icon'
					));?>

I have proven this in a brand new project called TEST, build tried for 3.0.10 and 3.1
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

Toggle Not working 15 Jan 2017 14:46 #14938

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Been through the code, there does not seem to be any code in the new builds for any toggle functionlaity that I can see
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

Toggle Not working 16 Jan 2017 22:29 #14946

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.

It was missing togglable => true in the JDom parameters.
Coding is now a piece of cake
The following user(s) said Thank You: MorganL

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.077 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started