Skip to content

docs(basic-button): adds doc annotations to make them doc-viewer compilant #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions basic-button.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
<link rel="import" href="../basic-element/basic-element.html">

<!--
A button with a simple generic style.
-->
@group Basic Web Components

<link rel="import" href="../basic-element/basic-element.html">
A button with a tasteful, minimalist generic style.

<b>Usage:</b>

<basic-button
isdisabled="[true|false]"
quiet="[true|false]">
<ANY></ANY>
</basic-button>

<b>Example:</b>

<basic-button isdisabled="true">Disabled</basic-button>

@element basic-button
@extends basic-element
@status stable
@homepage basic-web-components.github.io/basic-element/components/basic-button
-->
<polymer-element name="basic-button" extends="basic-element">

<template>
Expand Down Expand Up @@ -130,12 +148,28 @@


publish: {
/**
* Disables `basic-button` if set to `true`. It's value is going to be
* reflected back into the matching attribute when it changes.
*
* @attribute isdisabled
* @type boolean
* default false
*/
// We would *really* like to call this attribute "disabled", but that causes
// problems in IE. See https://github.com/Polymer/polymer/issues/372.
isdisabled: {
value: false,
reflect: true
},
/**
* Makes `basic-button` "quite" by removing `background`, `border` and
* `box-shadow` properties.
*
* @attribute quiet
* @type boolean
* @default false
*/
quiet: {
value: false,
reflect: true
Expand Down