d-md-components
Version:
A pack of components for Derby according to Google's Material Design based upon mdl (getmdl.io).
21 lines (20 loc) • 1.24 kB
HTML
<index: attributes="id groupHeader group checked label class">
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect mdl-js-ripple-effect--ignore-events is-upgraded {{if checked}}is-checked{{/if}} {{if undecided}}is-undecided{{/if}}{{if class}} {{class}}{{/if}}"
for="{{id}}"
data-upgraded=",MaterialCheckbox,MaterialRipple"
on-mousedown="click($event)"
on-mouseup="mouseUp()">
<input type="checkbox" id="{{id}}" class="mdl-checkbox__input" checked="{{checked}}" on-change="emit('checked', checked)">
<span class="mdl-checkbox__label">{{label}}</span>
<span class="mdl-checkbox__focus-helper"></span>
<span class="mdl-checkbox__box-outline">
{{if undecided}}
<span class="mdl-checkbox__square-outline"></span>
{{else}}
<span class="mdl-checkbox__tick-outline"></span>
{{/if}}
</span>
<span class="mdl-checkbox__ripple-container mdl-js-ripple-effect mdl-ripple--center" data-upgraded=",MaterialRipple">
<span class="{{if visible}}is-visible{{/if}} mdl-ripple {{if animating}}is-animating{{/if}}" style="width: 103.823px; height: 103.823px; transform: {{transformString}};"></span>
</span>
</label>