Socket
Book a DemoInstallSign in
Socket

coffee-views-pure

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffee-views-pure

A coffee-views extension to add YUI's pure functionality

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Pure Coffee Views

An extension to coffee-views that adds YUI's pure views.

Installation

npm i --save coffee-views-pure

The when using Coffee Views mixin the prototype:

{Base} = require 'coffee-views'
Pure = require 'coffee-views-pure'
util = require 'util'

class MyView extends Base

  render: ->
    # ...

util._extend MyView.prototype, Pure

module.exports = MyView

API

#form()

Adds the pure-form class name to the form

#stakedForm()

Adds the pure-form-stacked class name to the form

#alignedForm()

Adds the pure-form-aligned class name to the form

#grid()

Creates a grid in 2 ways.

Equal column grid

Pass an array and all the array items will be equally spaced.

@grid [
  -> @h2 'left'
  -> @h2 'right'
]

@grid [
  -> @h2 'left'
  -> @h2 'middle'
  -> @h2 'right'
]

Unequal grid

Pass an object with the keys as fractions.

@grid
  '1/3': -> @h2 'main'
  '2/3': -> @h2 'right'

#rGrid()

Same as the grid() method, but responsive.

#controlGroup()

Creates a div with the pure-control-group class.

#inputGroup()

Creates a fieldset with the pure-group class.

Keywords

coffee

FAQs

Package last updated on 17 Jun 2013

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.