@bulmil/core
Version:

87 lines (86 loc) • 2.82 kB
JavaScript
/*!
* Bulmil - MIT License
*/
import { h, Host } from "@stencil/core";
export class Pagination {
constructor() {
this.size = undefined;
this.alignment = undefined;
this.isRounded = false;
}
render() {
return (h(Host, { key: '67f2f3993588a7bdce7452a1b02ef093253007f7' }, h("nav", { key: 'b5b456ee068574594f7ddc19b7fdc97114d8dafb', class: {
pagination: true,
[this.size]: Boolean(this.size),
[this.alignment]: Boolean(this.alignment),
'is-rounded': this.isRounded,
}, role: "navigation", "aria-label": "pagination" }, h("slot", { key: '26899c6b421ca5c30d1a0abf1559ec566f192c2d' }))));
}
static get is() { return "bm-pagination"; }
static get originalStyleUrls() {
return {
"$": ["pagination.scss"]
};
}
static get styleUrls() {
return {
"$": ["pagination.css"]
};
}
static get properties() {
return {
"size": {
"type": "string",
"mutable": false,
"complexType": {
"original": "'is-small' | 'is-medium' | 'is-large'",
"resolved": "\"is-large\" | \"is-medium\" | \"is-small\"",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Pagination size"
},
"attribute": "size",
"reflect": false
},
"alignment": {
"type": "string",
"mutable": false,
"complexType": {
"original": "'is-centered' | 'is-right'",
"resolved": "\"is-centered\" | \"is-right\"",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Alignment"
},
"attribute": "alignment",
"reflect": false
},
"isRounded": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Rounded"
},
"attribute": "is-rounded",
"reflect": false,
"defaultValue": "false"
}
};
}
}