Skip to content

Conversation

@SergeyAsm
Copy link
Contributor

No description provided.

public static final String NAME = "perspectives";
public static final String OCLASS_PERSPECTIVE="OPerspective";
public static final String OCLASS_ITEM = "OPerspectiveItem";
public static final String OCLASS_TOP_ITEM = "OPerspectiveTopItem";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why these 2 classes additionally needed? There is already class for menu items for left menu - lets just use that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top menu not support recursive trees display. Only top level and dropdowns.All - without icons.

link.add(new AttributeAppender("class", " active"));
}
if (hasSubItems){
link.add(new AttributeModifier("aria-expanded", "false"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why these lines needed? It can be coded right in HTML.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If i do - all links show as dropdowns

<span class="navbar-toggler-icon"></span>
</button>

<nav class="navbar navbar-expand-lg" wicket:id="topMenu">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is menu looks good from mobile? Menu should be just collapsed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is bootstrap menu. I think mobile devices supported.


@Override
protected void populateItem(final ListItem<ODocument> item) {
item.setRenderBodyOnly(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commonly it's not recommended because of AJAX. Why it's needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In bootstrap4 dropdowns use links directly, without external tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants