{"id":20240870,"url":"https://github.com/ronsmits/sidenavigationpanel","last_synced_at":"2025-03-03T15:14:49.623Z","repository":{"id":6354358,"uuid":"7591243","full_name":"ronsmits/sidenavigationpanel","owner":"ronsmits","description":"A small wicket component that makes a sidebar menu with bootstrap","archived":false,"fork":false,"pushed_at":"2018-02-23T12:13:40.000Z","size":109,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-01-14T01:33:59.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronsmits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-13T17:50:11.000Z","updated_at":"2018-02-23T12:13:41.000Z","dependencies_parsed_at":"2022-09-03T15:11:08.773Z","dependency_job_id":null,"html_url":"https://github.com/ronsmits/sidenavigationpanel","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronsmits%2Fsidenavigationpanel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronsmits%2Fsidenavigationpanel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronsmits%2Fsidenavigationpanel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronsmits%2Fsidenavigationpanel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronsmits","download_url":"https://codeload.github.com/ronsmits/sidenavigationpanel/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241686832,"owners_count":20003112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T08:50:16.299Z","updated_at":"2025-03-03T15:14:49.594Z","avatar_url":"https://github.com/ronsmits.png","language":"Java","readme":"# Wicket bootstrap sidebar Navigation\n\nI wanted a simple way of adding a sidebar menu to a wicket application where I use Bootstrap css.\n\n## Including in your project\nAs this is not released into maven central there are two ways to use this in your project\n\n### compile \nClone this repository and run the command:\n````\nmvn clean install\n````\nThis will install the jar and the pom in your local repository.\n\n### Use jitpack\nAdd the jitpack repo to your pom file:\n```xml\n\u003crepositories\u003e\n  \u003crepository\u003e\n    \u003cid\u003ejitpack.io\u003c/id\u003e\n    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n  \u003c/repository\u003e\n\u003c/repositories\u003e\n```\nAdd the dependency:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.ronsmits\u003c/groupId\u003e\n  \u003cartifactId\u003esidenavigationpanel\u003c/artifactId\u003e\n  \u003cversion\u003erelease~3.0.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Using\nSideNavigationPanel uses a Builder to add MenuItems to it:\n\n    add(new SideNavigationPanel(new SideNavigationPanel.Builder(\"navigation\", getPage()).\n        .addMenuItem(\"List\", ListPage.class)\n        .addMenuItem(\"Add\", AddPage.class)\n        .addMenuItem(\"Another Page\", AnotherPage.class)));\n\nthe markup is\n\n    \u003cdiv wicket:id=\"navigation\"\u003e\u003c/div\u003e\n\nor\n\n    \u003cwicket:container wicket:id=\"navigation\"/\u003e\n\nThe html coming from this is a div containing an unordered list with the right bootstrap classes added:\n\n    \u003cdiv\u003e\n        \u003cul class=\"nav nav-list\"\u003e\n            \u003cli\u003e\u003ca href=\"./index.html\"\u003eHome\u003c/a\u003e\u003c/li\u003e\n            \u003cli class=\"active\"\u003e\u003ca href=\"./list.html\"\u003eList\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"./wicket/bookmarkable/com.example.wicket.pages.AddFilm\"\u003eAdd\u003c/a\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/div\u003e\n\n\n\nThe way the builder works you can also add stuff like this:\n\n    Builder builder = new Builder(\"navigation\", getPage());\n        builder = builder\n                .addMenuItem(\"Home\", HomePage.class)\n                .addMenuItem(\"List\", ListPage.class);\n        if (checkLogin()) {\n            builder.addMenuItem(\"Add\", AddFilm.class);\n        }\n        add(new SideNavigationPanel(builder));\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronsmits%2Fsidenavigationpanel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronsmits%2Fsidenavigationpanel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronsmits%2Fsidenavigationpanel/lists"}