@openenergytools/action-tree
v1.0.1
Published
A tree web component with custom events for actions.
Readme
<ActionTree>
This is a tree grid component allowing you to define various types of action on the tree and its grid values.
ActionTree.ts:
class: ActionTree, action-tree
Superclass
| Name | Module | Package |
| ------------ | ------ | ------- |
| LitElement | | lit |
Mixins
| Name | Module | Package |
| --------------------- | ------ | --------------------------------------- |
| ScopedElementsMixin | | @open-wc/scoped-elements/lit-element.js |
Static Fields
| Name | Privacy | Type | Default | Description | Inherited From |
| ---------------- | ------- | -------- | ---------------------------------------- | ----------- | -------------- |
| scopedElements | | object | {
'icon-button': MdIconButton,
} | | |
Fields
| Name | Privacy | Type | Default | Description | Inherited From |
| ------ | ------- | ------------------ | ------- | ----------- | -------------- |
| data | | TreeNode \| null | null | | |
Events
| Name | Type | Description | Inherited From |
| -------- | ------------- | ----------- | -------------- |
| unfold | CustomEvent | | |
Fields
| Name | Privacy | Type | Default | Description | Inherited From |
| ------------- | ------- | ------------- | ----------- | ----------- | -------------- |
| folded | private | Set<string> | new Set() | | |
| knownPaths | private | Set<string> | new Set() | | |
| maxLeafCols | private | number | 0 | | |
Methods
| Name | Privacy | Description | Parameters | Return | Inherited From |
| ------------------- | ------- | ----------- | ------------------------------------------------------------------------- | --------------------------- | -------------- |
| pathKey | private | | path: (string \| number)[] | | |
| toggleFold | private | | path: (string \| number)[], node: TreeNode | | |
| renderLeadingIcon | private | | node: TreeNode | TemplateResult | |
| renderRows | private | | node: TreeNode \| null, path: (string \| number)[], level, parentFolded | ReturnType<typeof html>[] | |
Exports
| Kind | Name | Declaration | Module | Package |
| ---- | ------------ | ----------- | ------------- | ------- |
| js | ActionTree | ActionTree | ActionTree.ts | |
action-tree.ts:
Exports
| Kind | Name | Declaration | Module | Package |
| --------------------------- | ------------- | ----------- | -------------- | ------- |
| custom-element-definition | action-tree | ActionTree | /ActionTree.js | |
© 2023 The Contributors
