Files
ionic-framework/core/src/components/item-group/item-group.tsx
Manu MA 34dfc3ce98 refactor(all): updating to newest stencil apis (#18578)
* 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
2019-06-23 11:26:42 +02:00

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
}
};
}
}