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

TOPIC:

Toggle button - undefined 20 Apr 2016 15:35 #13919

  • krasy
  • krasy's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 90
  • Thank you received: 8
in collection bool values display good icons when not toggable:
null as icon-question-sign
1 as icon-ok
0 as icon-cancel

in collection with toggable button,
null displays as icon-cancel,

I would like to have null as undefined (question mark).
is it here: administrator\components\com_obrady\dom\html\fly\bool.php
?
cant find the right place in code.

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

Toggle button - undefined 22 Apr 2016 16:43 #13920

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This is handled by JDom.
Correct, when you choose togglable, the icons differs. Maybe not the best. Might be unified at least.

The JDom class handling that is :
html.grid.bool.default

located in :
html/grid/bool/default.php

EDIT: You might find easily how to change the icons.
Hope it helps.
Coding is now a piece of cake

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

Last edit: by admin.

Toggle button - undefined 23 Apr 2016 21:28 #13921

  • krasy
  • krasy's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 90
  • Thank you received: 8
thx for replay,
if someone would like not to have "undefined" option
than would simply specify the default value as "false" or "true" in the builder.

I ve been changing
libraries\jdom\html\grid\bool\default.php
and:
administrator\components\com_obrady\dom\html\grid\bool\default.php

the the code there doesn't seem to influence the behavior of buttons...
did i miss something?

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

Toggle button - undefined 09 May 2016 10:39 #13932

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Sorry I was wrong.
html.grid.bool.default
is deprecated

When I opened those files again, I saw a big mess. So I rewritten that part.
github.com/Cook-Self-Service/JDom/commit...fd143bc25f13ad9bce8e
You need the last JDom version 2.6.14, included naturally when you download again (no need to do anything). JDom will be automatically updated at install.

It is now much easy to change the icons. You have to edit the file :
html/grid/task/state/bool.php

You will find the icons at the top of the file.
JDom calls does not change at all in your code.
You still can use html.grid.bool which is an alias of html.grid.task.state.bool

Hope it helps.
Coding is now a piece of cake
The following user(s) said Thank You: krasy

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

Toggle button - undefined 09 May 2016 14:02 #13936

  • krasy
  • krasy's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 90
  • Thank you received: 8
Thx Jocelyn ;)
now it works out of the box
I don't have to fork anything!

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

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

I've evaluated lots of other Joomla Component Dev tools such as Shell Manager (J)enesis Danny's Joomla! 1.5 MVC Component Code Generator Marco's Component Maker and I must admit that I love what I see on your site! Lots of potential... Otherwise Great Job and keep up the good work!!!
Clifton (forum)

Get Started