I want to implement a page navigation in a side menu in my angular page like this.
But I couldn't find any like this component in the Angular Material or Bootstrap.
Is there any good library that offers a page navigation in a page side?
Or do I just need to write a code myself to implement this?
If you will take a look at the source you will see they are using <aio-toc ng-version="8.1.0-next.1">
When you will look for it you will see the source code over here:
https://github.com/angular/angular/tree/master/aio/src/app/custom-elements/toc
Related
I'm using Django to handle my templates. From the picture I am trying to explain what I want in the web page. For convenience I have given the number for the blocks in the picture. I have created blocks 3,4 5,6, and 7 in one .html file.
I actually want navbar1 and navbar2 to display in every page of my project, and that's why I have to create one separate .html file for each. The problem is that I'm not able to apply two navbars in one html file. I also tried with the sidebar (for navbar2), but have faced some issues.
Dropdown button doesn't work on the sidebar and,
When I reload the page, the menu of the side bar will display first and then the sidebar will overwrite the menu and then visualize properly.
Please suggest to me how I can design the page for navbar1 and navbar2 in one html file.
Creating a base.html template that all other templates inherit/extend from should do the trick. Here's a website post going in depth upon how to accomplish this: https://tutorial.djangogirls.org/en/template_extending/
I was wondering if anyone could show me an example for using html framesets with google appengine for python 2.7. What i want to do is have two frames, one static frame containing a sidebar with buttons and then another frame to the right of it that shows different pages depending on which button is selected.
As others have commented, this is something that can be solved client-side and you shouldn't be using frames.
Zurb foundation offers navigation similar to what you are requesting.
http://foundation.zurb.com/docs/navigation.php
Similarly, Twitter bootstrap also offers navigation that would enable you to build the functionality you are requesting.
http://twitter.github.com/bootstrap/components.html#navbar
A plugin that will help you keep a sticky side menu can be found here: http://mojotech.github.com/stickymojo/
In response to your comment:
To dynamically load content into the 'frame' alongside the menu bar, you can use jQuery load function.
http://api.jquery.com/load/
It allows you to fetch a page from the server and replace an elements content with the fetched content.
Dreamweaver has spry menu function which lets user creating navigation bar quickly.
Suppose I have multiple pages in a web site, the navigation bar are all same.
Can we borrow the concept of master page from asp.net?
I mean that to create master page by using spry menu?
Thanks
With pure html/css ... No you can't.
With the use of PHP, ASP, or a similar server side technology you could.
On second thought maybe you could use AJAX to load the menu in with the jQuery library.
http://api.jquery.com/load/
$('#menu').load('menu.html');
So add jQuery to your web page. Then add the script above and where currently have the Spry menu put...
<div id="menu"></div>
Put the code for the menu you just removed into a file called menu.html.
i want to display the menu while clicking image button & should hide menu(click again)
in Ruby/ HTML
Like Windows Start button
This is html/js issue. See this page: http://www.1stwebdesigner.com/css/38-jquery-and-css-drop-down-multi-level-menu-solutions/
I recently followed the following tutorial, http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html, and found it to be a good one. All the HTML / CSS / JS is laid out very clearly, and the example is bare-bones enough that's it's very easy to customize to make it look exactly how you want it.
I'm working with the Materializecss front-end framework and I'm trying to use tabs for moving along external links but it seems like it doesn't work. The examples are for content with a ID inside the same page we're on. How can I solve this? Thank you.
As option - have different active tab on page you're linking. So visiting that page from link automatically sets it as active