Socket
Socket
Sign inDemoInstall

@craftkit/craft-widget-navigationgroup

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @craftkit/craft-widget-navigationgroup

Classic stack navigation for Craft-UIKit


Version published
Maintainers
1
Install size
873 kB
Created

Readme

Source

Craft-Widget-NavigationGroup

Classic stack navigation.

Try online tutorial:
https://github.com/craftkit/craftkit-playground

Demo:
See craft-sample-photoalbum for more about this widget.

How to use

<script src="https://unpkg.com/@craftkit/craft-uikit/dist/craft-uikit.min.js"></script>

<!-- automatically loaded into Craft.Widget.NavigationGroup -->
<script src="https://unpkg.com/@craftkit/craft-widget-navigationgroup/dist/craft-widget-navigationgroup.min.js"></script>
<script>
    window.onload = function(){
        Craft.Core.Bootstrap.boot(App);
    };
</script>

or

import * as Craft from '@craftkit/craft-uikit';
import * as NavigationGroup from '@craftkit/craft-widget-navigationgroup';

// inject into Craft.Widget. (this is just a cosmetic function)
Craft.usePackage(NavigationGroup);

export class PageController extends Craft.Widget.NavigationGroup.ViewController { ... }

Requirement and Note

  • Depends on Craft-UIKit.
  • Your page component should extends Craft.Widget.NavigationGroup.Page to be fit and scrollable in the content area.
  • NavigationGroup set the scrollTop against your this.view. Be careful if you would like to modify your dom structure of your template.

License

MIT

Keywords

FAQs

Last updated on 04 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc