Get menu item class in Drupal 7 - class

I´m trying to get menu items classes/IDs to be able to write a conditions for front-end.
I tried the following code :
$element['#attributes']['class']
But it's not showing me anything.
Can you please show me a way?

There is a nice little module to do this if you don't need to hard code them:
https://www.drupal.org/project/menu_attributes

Related

How to find a button within <ul> and <li> via Proctractor?

I am new to automation, and my previous experiences were with non-Angular apps, thus i start to use Protractor.
I want to navigate throught the website, though cannot find the right selector.
The button is highlighted in red on the bottom of the screen:
I've tried below code among many:
element(by.name('Flota')).click()
or
element(by.css('.ng-tns-c11-5')).click()
element(by.css('div[title=Flota]'));
maybe you should target the <a> or <nb-icon> element instead?
Try the following locators:
using a:
element(by.css('.ng-tns-c11-16.ng-star-inserted.active'));
or nb-icon:
element(by.css('.menu-icon.ng-tns-c11-16.ng-star-inserted'));
Additionally, if you need to target the <span> element:
element(by.css('.ng-tns-c11-16.ng-star-inserted.active span'));
I suggest
by.css("a[title='Flota']") //if this is the button you are looking for
Since the shorter is locator - the better
your help was much appreciated!
Unfortunately, i tried all options you provided and didn't work, though i made additional trial and error runs.
The code i worked out is below, maybe it will help another newbie like me:
element.all(by.css('#menu-item ng-tns-c11-4 ng-star-inserted li')).click()

Name of command drop down list in swift

What is the dropdown list of varibles called that shows up when you start typing in a command in swift. I'm trying to find a list of all of the words so I can search for them and get a better understanding of which commands will work better for me.
You can't. It's not like web. You need to use custom UITableView and segue. You can check here for your reference:
http://www.raywenderlich.com/81880/storyboards-tutorial-swift-part-2

How to programmatically change help contents in Eclipse?

I have an eclipse plugin and I would like to programmatically disable help content TOC's based on a variable I define. In a nut shell, I want to prevent some help docs from showing up in the help contents if a specific type of user is accessing the plugin.
Preferably I would like to do this in the ApplicationWorkbenchAdvisor somewhere.
One thought would be to modify the "primary" value to be false if the variable were set.
Not sure if it would work, but try using the org.eclipse.ui.activities extension point. The tutorial from Vogella tells it is possible to hide only UI elements like wizards, views and so on, but it is from 2009.. Not sure if hiding TOC is now possible. If you try it out, would be nice to give a feedback ;)

ExtJS 4 working with itemclick function in grid.Panel

I'm using
itemclick: function(grid, record, item, index, e)
in my
Ext.create('Ext.grid.Panel', {..
I'm googling almost 2 hours and I find more and more ways to select one thing, or do another.Like for example
console.log(grid.getSelectionModel());
you get something but where I can find all the methods availabale and how to connect one with another to get the effect I want. I just feel lost here and don't know from where to start. I guess it's the ExtJS way to navigate in DOM but is there a place where all the methods are described and what are they used for and after all what's the way to navigate through all this - just smoe standart JavaScript that I've missed or something ExtJS specific ...
Thanks
Leron
Hopefully you found this by now, but the API doc are here. Each of the ExtJS objects are listed under the tab with a gear looking icon. Clicking on one will open a tab for that object with all of its config options, properties and methods.

bada - Tab bar control

I am new to bada programming and I am facing some problems. I am currently creating an app that consists of 6 tab bar item, each of which have a different form and have different controls in each form. I have tried following the example on http://www.badadev.com/forms-management-in-bada-part-3-managing-forms/ , however, I have set up all the controls in the form, but it does not respond and does not AppLog when I clicked on the button. Can someone please help me on this???
It is very hard to solve your problem that way(without seeing your code). Take look on a XmlParserApp example. It is using FormMgr and maybe you can get some good ideas. Or it is important that you have base class tabsForm that all the forms inherit?