Button item

This commit is contained in:
Max Lynch
2015-05-06 15:42:47 -05:00
parent f783be2e13
commit de33df4767
5 changed files with 23 additions and 2 deletions

View File

@@ -14,5 +14,5 @@ export class Button {
}
new IonicComponent(Button, {
enhanceRawElement: true,
propClasses: ['primary', 'secondary', 'danger', 'light', 'stable', 'dark', 'block']
propClasses: ['primary', 'secondary', 'danger', 'light', 'stable', 'dark', 'block', 'clear', 'full', 'icon']
})

View File

@@ -19,6 +19,13 @@
<textarea control="note" type="text" placeholder="A description"></textarea>
</ion-input>
</ion-list>
<ion-list inset>
<ion-item button>
<button ion-button danger clear>
Delete Account
</button>
</ion-item>
</ion-list>
<button ion-button primary block type="submit">Submit</button>
</form>
</ion-content>

View File

@@ -39,4 +39,12 @@ $item-ios-border-color: $list-ios-border-color !default;
color: $item-ios-accessory-color;
}
.item-button {
// No left ios-style padding
padding-left: 0;
button {
width: 100%;
font-size: 1.3em;
}
}
}

View File

@@ -54,7 +54,9 @@ export class Item {
}
}
new IonicComponent(Item, {})
new IonicComponent(Item, {
propClasses: ['button']
})
function clsSetter(el, name) {

View File

@@ -128,3 +128,7 @@ ion-primary-swipe-buttons {
border-radius: 50%;
}
}
.item-button {
}