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
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started