octicon-rss(16/)
You've already forked ionic-framework
mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 22:44:13 +08:00
* chore(): update ionicons * refactor(all): updating to newest stencil apis * fix lint issues * more changes * moreee * fix treeshaking * fix config * fix checkbox * fix stuff * chore(): update ionicons * fix linting errors
29 lines
542 B
TypeScript
29 lines
542 B
TypeScript
import { Component, ComponentInterface } from '@stencil/core';
|
|
|
|
import { getIonMode } from '../../global/ionic-global';
|
|
|
|
@Component({
|
|
tag: 'ion-item-group',
|
|
styleUrls: {
|
|
ios: 'item-group.ios.scss',
|
|
md: 'item-group.md.scss'
|
|
}
|
|
})
|
|
export class ItemGroup implements ComponentInterface {
|
|
|
|
hostData() {
|
|
const mode = getIonMode(this);
|
|
return {
|
|
'role': 'group',
|
|
class: {
|
|
[mode]: true,
|
|
|
|
// Used internally for styling
|
|
[`item-group-${mode}`]: true,
|
|
|
|
'item': true
|
|
}
|
|
};
|
|
}
|
|
}
|