Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top(header) menu #641

Open
wants to merge 2 commits into
base: future
Choose a base branch
from
Open

Conversation

SergeyAsm
Copy link
Contributor

No description provided.

@@ -38,13 +38,15 @@
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

@@ -12,6 +12,9 @@
<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.

@@ -79,6 +79,7 @@ public boolean isEnabled(Component component) {

@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