@ionic/core
Version:
Base components for Ionic
33 lines (32 loc) • 979 B
JavaScript
import { createColorClasses } from '../../utils/theme';
export class CardHeader {
constructor() {
this.translucent = false;
}
hostData() {
return {
class: Object.assign({}, createColorClasses(this.color), { 'card-header-translucent': this.translucent })
};
}
render() {
return h("slot", null);
}
static get is() { return "ion-card-header"; }
static get encapsulation() { return "shadow"; }
static get properties() { return {
"color": {
"type": String,
"attr": "color"
},
"mode": {
"type": String,
"attr": "mode"
},
"translucent": {
"type": Boolean,
"attr": "translucent"
}
}; }
static get style() { return "/**style-placeholder:ion-card-header:**/"; }
static get styleMode() { return "/**style-id-placeholder:ion-card-header:**/"; }
}