mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 06:22:45 +08:00
list updates
This commit is contained in:
@ -31,13 +31,13 @@ export let CheckboxConfig = new ComponentConfig('checkbox')
|
||||
export class Checkbox {
|
||||
constructor(
|
||||
configFactory: CheckboxConfig,
|
||||
element: NgElement,
|
||||
@NgElement() ngElement: NgElement,
|
||||
@PropertySetter('attr.role') setAriaRole: Function,
|
||||
@PropertySetter('attr.aria-checked') setAriaChecked: Function,
|
||||
@PropertySetter('attr.aria-invalid') setAriaInvalid: Function,
|
||||
@PropertySetter('attr.aria-disabled') setAriaDisabled: Function
|
||||
) {
|
||||
this.domElement = element.domElement
|
||||
this.domElement = ngElement.domElement
|
||||
this.domElement.classList.add('item')
|
||||
this.config = configFactory.create(this)
|
||||
|
||||
|
@ -1,30 +1,26 @@
|
||||
|
||||
<div class="pane">
|
||||
<ion-view view-title="Checkboxes">
|
||||
|
||||
<div class="pane-container">
|
||||
<ion-content>
|
||||
|
||||
<div class="content" style="background: #efeff4">
|
||||
<div class="list-header">Some Checkboxes</div>
|
||||
|
||||
<ion-list>
|
||||
<ion-list>
|
||||
|
||||
<ion-list-header>Some Checkboxes</ion-list-header>
|
||||
<ion-checkbox [checked]="true">
|
||||
Apples
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox [checked]="true">
|
||||
Apples
|
||||
</ion-checkbox>
|
||||
<ion-checkbox>
|
||||
Bananas
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox>
|
||||
Bananas
|
||||
</ion-checkbox>
|
||||
<ion-checkbox [disabled]="true">
|
||||
Oranges
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox [disabled]="true">
|
||||
Oranges
|
||||
</ion-checkbox>
|
||||
</ion-list>
|
||||
|
||||
</ion-list>
|
||||
</ion-content>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</ion-view>
|
||||
|
Reference in New Issue
Block a user