summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/settings/checkbox/checkbox.html
blob: e660fdbda9a671e5c1a70f265ac00e83e395b01f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<link rel="import" href="chrome://resources/polymer/core-label/core-label.html">
<link rel="import" href="chrome://resources/cr_elements/cr_checkbox/cr_checkbox.html">
<link rel="import" href="chrome://resources/cr_elements/cr_events/cr_events.html">
<link rel="import" href="chrome://md-settings/pref_tracker/pref_tracker.html">

<polymer-element name="cr-settings-checkbox">
  <template>
    <link rel="stylesheet" href="checkbox.css">
    <cr-events id="events"></cr-events>
    <cr-settings-pref-tracker pref="{{pref}}"></cr-settings-pref-tracker>

    <core-label horizontal layout>
      <cr-checkbox id="checkbox" checked="{{pref.value}}"
          disabled="{{pref.disabled}}" for></cr-checkbox>
      <span>{{label}}</span>
      <span class="sub-label">{{subLabel}}</span>
    </core-label>
  </template>
  <script src="checkbox.js"></script>
</polymer-element>