Giter Site home page Giter Site logo

abhisheknanda1344463 / grapesjs-navbar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grapesjs/components-navbar

0.0 1.0 0.0 89 KB

Simple navbar component for the GrapesJS editor

License: BSD 3-Clause "New" or "Revised" License

HTML 7.51% JavaScript 92.49%

grapesjs-navbar's Introduction

GrapesJS Navbar

Simple navbar component for GrapesJS editor

GrapesJS


Summary

  • Plugin name: gjs-navbar
  • Components: burger-menu
  • Blocks: h-navbar

Options

  • blocks Which blocks to add, default: ['h-navbar'] (all),
  • defaultStyle Add default style to blocks, default: 1,
  • navbarClsPfx Navbar class prefix, default: 'navbar',
  • labelNavbar Navbar label, default: 'Navbar',
  • labelNavbarContainer Navbar container label, default: 'Navbar Container',
  • labelMenu Menu label, default: 'Navbar Menu',
  • labelMenuLink Menu link label, default: 'Menu link',
  • labelBurger Burger menu label, default: 'Burger',
  • labelBurgerLine Burger line label, default: 'Burger Line',
  • labelNavbarBlock Navbar Block label, default: 'Navbar',
  • labelNavbarCategory Navbar Block Category label, default: 'Extra',
  • labelHome Home label, default: 'Home',
  • labelAbout About label, default: 'About',
  • labelContact Contact label, default: 'Contact',

Download

  • npm i grapesjs-navbar

Usage

<link href="path/to/grapes.min.css" rel="stylesheet"/>
<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-navbar.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
      container : '#gjs',
      plugins: ['gjs-navbar'],
      pluginsOpts: {
        'gjs-navbar': {/* ...options */}
      }
  });
</script>

Development

Clone the repository

$ git clone https://github.com/artf/grapesjs-navbar.git
$ cd grapesjs-navbar

Install it

$ npm i

The plugin relies on GrapesJS via peerDependencies so you have to install it manually (without adding it to package.json)

$ npm i grapesjs --no-save

Start the dev server

$ npm start

License

BSD 3-Clause

grapesjs-navbar's People

Contributors

artf avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.