This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

active State Icon
#1
Hello 
What Is the active state icon in the link and how to use it?
Best Regards,
Reply
#2
From LM docs: Icon that is displayed when the link points to the current plan. Can be used in Layouts to create a plan menu.
Reply
#3
(27.06.2022, 13:29)admin Wrote: From LM docs: Icon that is displayed when the link points to the current plan. Can be used in Layouts to create a plan menu.

Thanks
Best Regards,
Reply
#4
(27.06.2022, 13:29)admin Wrote: From LM docs: Icon that is displayed when the link points to the current plan. Can be used in Layouts to create a plan menu.

Hello:

I want to change the element "Link" textColor when tne "Display mode" is in Value mode, Is it posible?, Can I do it using javascript?

I know that element "Link" with "Display mode" as Icon, I can choose the Icon when the page is active, but in Value mode I can not choose any text style when the page is active.

Could you help me about it, I want to change not only the menú Icon I want to change too the text color when the page is active.

Thank you very much, best regards

Roger
Reply
#5
As we have 3 Visualization tools, it would be good to say which one do you use?
------------------------------
Ctrl+F5
Reply
#6
(10.10.2025, 10:01)Daniel Wrote: As we have 3 Visualization tools, it would be good to say which one do you use?

I am talking about "scada-vis", visualization for PC/Tablet
thank you very much
Roger
Reply
#7
For all relevant plan links set Additional classes to plan-link plan-link-123 where 123 is plan id to which the link refers.

Custom JS:
Code:
$(function() {
  var prevId;

  function onshowplan() {
    if (prevId) {
      $('.plan-link-' + prevId).removeClass('active');
    }
    
    if (currentPlanId) {
      $('.plan-link-' + currentPlanId).addClass('active');
        prevId = currentPlanId;
    }
  }
  
  $('body').on('showplan', onshowplan);
  onshowplan();
});

Custom CSS:
Code:
.plan-link.active {
  color: red;
}
Reply
#8
(14.10.2025, 08:50)admin Wrote: For all relevant plan links set Additional classes to plan-link plan-link-123 where 123 is plan id to which the link refers.

Custom JS:
Code:
$(function() {
  var prevId;

  function onshowplan() {
    if (prevId) {
      $('.plan-link-' + prevId).removeClass('active');
    }
   
    if (currentPlanId) {
      $('.plan-link-' + currentPlanId).addClass('active');
        prevId = currentPlanId;
    }
  }
 
  $('body').on('showplan', onshowplan);
  onshowplan();
});

Custom CSS:
Code:
.plan-link.active {
  color: red;
}

Thank you very much, it works very well, but I had to add in custom CSS the parameter !important

.plan-link.active {
  color: red !important;
}

Thank you so much, good work,

best regard, Roger
Reply


Forum Jump: