ember-bootstrap
Version:
Bootstrap components for Ember.js
89 lines (87 loc) • 2.2 kB
TypeScript
import Component from '@glimmer/component';
import type { ComponentLike } from '@glint/template';
import type { TitleSignature } from './item/title';
import type { BodySignature } from './item/body';
export interface ItemSignature {
Args: {
bodyComponent?: ComponentLike<BodySignature>;
disabled?: boolean;
onClick?: (newValue?: unknown) => void;
selected?: unknown;
title?: string;
titleComponent?: ComponentLike<TitleSignature>;
value?: unknown;
};
Blocks: {
default: [
{
title: ComponentLike<TitleSignature>;
body: ComponentLike<BodySignature>;
}
];
};
Element: HTMLDivElement;
}
/**
A collapsible/expandable item within an accordion
See [Components.Accordion](Components.Accordion.html) for examples.
@class AccordionItem
@namespace Components
@extends Ember.Component
@public
*/
export default class AccordionItem extends Component<ItemSignature> {
/**
* The title of the accordion item, displayed as a .panel-title element
*
* @property title
* @type string
* @public
*/
/**
* The value of the accordion item, which is used as the value of the `selected` property of the parent [Components.Accordion](Components.Accordion.html) component
*
* @property value
* @public
*/
value: unknown;
/**
* @property selected
* @private
*/
/**
* @property titleComponent
* @type {String}
* @private
*/
/**
* @property bodyComponent
* @type {String}
* @private
*/
/**
* @property collapsed
* @type boolean
* @readonly
* @private
*/
get collapsed(): boolean;
/**
* @property disabled
* @type boolean
* @public
*/
/**
* Property for type styling
*
* For the available types see the [Bootstrap docs](https://getbootstrap.com/docs/4.3/components/navbar/#color-schemes)
*
* @property type
* @type String
* @default 'default'
* @public
*/
type: string;
get typeClass(): string;
}
//# sourceMappingURL=item.d.ts.map