Blame view

bower_components/paper-dialog-behavior/README.md 918 Bytes
c5169e0e   Renato De Donato   a new hope
1
  # paper-dialog-behavior
e619a3b0   Luigi Serra   Controllet cross ...
2
  
c5169e0e   Renato De Donato   a new hope
3
4
  `paper-dialog-behavior` implements behavior related to a Material Design dialog. Use this behavior
  and include `paper-dialog-common.css` in your element to implement a dialog.
e619a3b0   Luigi Serra   Controllet cross ...
5
6
7
8
9
10
  
  `paper-dialog-common.css` provide styles for a header, content area, and an action area for buttons.
  Use the `<h2>` tag for the header and the `buttons` class for the action area. You can use the
  `paper-dialog-scrollable` element (in its own repository) if you need a scrolling content area.
  
  Use the `dialog-dismiss` and `dialog-confirm` attributes on interactive controls to close the
c5169e0e   Renato De Donato   a new hope
11
  dialog.
e619a3b0   Luigi Serra   Controllet cross ...
12
  
c5169e0e   Renato De Donato   a new hope
13
  For example, if `<paper-dialog-impl>` implements this behavior:
e619a3b0   Luigi Serra   Controllet cross ...
14
  
c5169e0e   Renato De Donato   a new hope
15
16
17
18
19
20
21
22
23
24
  ```html
  <paper-dialog-impl>
      <h2>Header</h2>
      <div>Dialog body</div>
      <div class="buttons">
          <paper-button dialog-dismiss>Cancel</paper-button>
          <paper-button dialog-confirm>Accept</paper-button>
      </div>
  </paper-dialog-impl>
  ```