-
Notifications
You must be signed in to change notification settings - Fork 1
/
fs-person-gender-selector.html
45 lines (42 loc) · 1.29 KB
/
fs-person-gender-selector.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<dom-module id="fs-person-gender-selector">
<template>
<style>
:host {
display: block;
}
</style>
<paper-radio-group selected="{{gender}}" allow-empty-selection>
<paper-radio-button disabled="[[disabled]]" name="http://gedcomx.org/Male">Male</paper-radio-button>
<paper-radio-button disabled="[[disabled]]" name="http://gedcomx.org/Female">Female</paper-radio-button>
<paper-radio-button disabled="[[disabled]]" name="http://gedcomx.org/Unknown">Unknown</paper-radio-button>
</paper-radio-group>
</template>
<script>
/**
* `fs-person-gender-selector`
*
*
* @customElement
* @polymer
* @demo demo/index.html
*/
class FsPersonGenderSelector extends Polymer.Element {
static get is() { return 'fs-person-gender-selector'; }
static get properties() {
return {
gender: {
type: String,
notify: true
},
disabled: {
type: Boolean,
value: false
}
};
}
}
window.customElements.define(FsPersonGenderSelector.is, FsPersonGenderSelector);
</script>
</dom-module>