@carbon/ibm-products-web-components
Version:
Carbon for IBM Products Web Components
83 lines • 2.26 kB
TypeScript
/**
* @license
*
* Copyright IBM Corp. 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { LitElement } from 'lit';
import '@carbon/web-components/es/components/checkbox/index.js';
import '@carbon/web-components/es/components/radio-button/index.js';
/**
* Add Select Row component - represents a single selectable row
* @element c4p-add-select-row
* @slot default - Custom content to render after the title/subtitle section. Useful for adding badges, tags, or other metadata to the row.
* @slot icon - Optional icon slot
* @slot meta - Optional metadata slot
* @fires c4p-add-select-row-select - Fired when row is selected/deselected
* @fires c4p-add-select-row-navigate - Fired when navigating to children
*/
declare class CDSAddSelectRow extends LitElement {
/**
* Whether this is part of a multi-select list (inherited from parent c4p-add-select)
* @private
*/
private get _multi();
/**
* Unique identifier for the item
*/
itemId: string;
/**
* Item title
*/
title: string;
/**
* Item subtitle
*/
subtitle: string;
/**
* Item value
*/
value: string;
/**
* Whether the item is selected
*/
selected: boolean;
/**
* Whether the item is disabled
*/
disabled: boolean;
/**
* Whether the item has children (for navigation)
*/
hasChildren: boolean;
/**
* Parent ID for hierarchical navigation
*/
parentId: string;
/**
* Handle navigation to children
*/
private _handleNavigate;
/**
* Handle selection change from checkbox/radio button
*/
private _handleSelect;
/**
* Emit selection event
*/
private _emitSelectionEvent;
render(): import("lit-html").TemplateResult<1>;
/**
* The name of the custom event fired when row is selected/deselected
*/
static get eventSelect(): string;
/**
* The name of the custom event fired when navigating to children
*/
static get eventNavigate(): string;
static styles: any;
}
export default CDSAddSelectRow;
//# sourceMappingURL=add-select-row.d.ts.map