GithubHelp home page GithubHelp logo

mozilla-github-standards / 1dafacb0f911b56426a30c13851a46cef500065521901a86c61abb76579476d9 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozbrick/brick-dialog

0.0 0.0 0.0 603 KB

License: Apache License 2.0

JavaScript 46.14% HTML 23.62% CSS 30.24%

1dafacb0f911b56426a30c13851a46cef500065521901a86c61abb76579476d9's Introduction

brick-dialog

A simple Brick dialog.

Demo

Check it live!

Usage

  1. Import Web Components polyfill:

    <script src="bower_components/platform/platform.js"></script>
  2. Import Custom Element:

    <link rel="import" href="dist/brick-dialog.html">
  3. Start using it:

    <brick-dialog>
      <header>Here your header</header>
      <section>Here your content</section>
      <footer [vertical]>
    
        <brick-action target="horizontal" action="hide">
          <button>cancel</button>
        </brick-action>
    
        <brick-action target="horizontal" action="hide">
          <button>cancel</button>
        </brick-action>
    
      </footer>
    </brick-dialog>

Clicking on one of the sets the clicked item as selected.

brick-dialog details

Methods

Method Parameters Returns Description
show() - - Show the dialog
hide() - - Hide the dialog

Development

Brick components use Stylus to generate their CSS.

This repository comes outfitted with a set of tools to ease the development process.

To get started:

  • Install Bower & Gulp:

    $ npm install -g bower gulp
  • Install local dependencies:

    $ npm install && bower install

While developing your component, there is a development server that will watch your files for changes and automatically re-build your styles and re-lint your code.

To run the development server:

  • Run gulp server
  • Navigate to http://localhost:3001

To simply build and lint your code, run gulp build.

You can also push your code to GitHub Pages by running gulp deploy.

1dafacb0f911b56426a30c13851a46cef500065521901a86c61abb76579476d9's People

Contributors

nicola avatar mozilla-github-standards avatar potch 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.