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.079 seconds

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started