普通文本  |  45行  |  1.37 KB


<!---

This README is automatically generated from the comments in these files:
paper-button-behavior.html  paper-checked-element-behavior.html  paper-inky-focus-behavior.html  paper-ripple-behavior.html

Edit those files, and our readme bot will duplicate them over here!
Edit this file, and the bot will squash your changes :)

The bot does some handling of markdown. Please file a bug if it does the wrong
thing! https://github.com/PolymerLabs/tedium/issues

-->

[![Build Status](https://travis-ci.org/PolymerElements/paper-behaviors.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-behaviors)

_[Demo and API Docs](https://elements.polymer-project.org/elements/paper-behaviors)_


<!-- No docs for Polymer.PaperButtonBehavior found. -->

##Polymer.PaperCheckedElementBehavior

Use `Polymer.PaperCheckedElementBehavior` to implement a custom element
that has a `checked` property similar to `Polymer.IronCheckedElementBehavior`
and is compatible with having a ripple effect.



##Polymer.PaperInkyFocusBehavior

`Polymer.PaperInkyFocusBehavior` implements a ripple when the element has keyboard focus.



##Polymer.PaperRippleBehavior

`Polymer.PaperRippleBehavior` dynamically implements a ripple
when the element has focus via pointer or keyboard.

NOTE: This behavior is intended to be used in conjunction with and after
`Polymer.IronButtonState` and `Polymer.IronControlState`.