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.056 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started