3.13.1 • Published 2 months ago

@conectate/ct-select v3.13.1

Weekly downloads
9
License
BSD-3-Clause
Repository
github
Last release
2 months ago

ct-select

Basic Example

// import { ... } from 'lit';

// @conectate/ct-lit is a base class wrapper of lit
import { CtLit, css, customElement, html, property } from "@conectate/ct-lit";

@customElement("my-select")
export class MySelect extends CtLit {
	items: { text: string; value: any }[] = [
		{ text: "Item 1", value: 1 },
		{ text: "Item 2", value: 2 },
		{ text: "Item 3", value: 3 }
	];
	render() {
		return html` <ct-select id="select" label="selecciona uno" .items=${this.items} @value=${this.onSelectItem}></ct-select> `;
	}

	firstUpdated() {
		this.mapIDs(); // map ID's in this.$ = { ... }
	}

	onSelectItem(e: CustomEvent<{ value: any }>) {
		console.log(this.$.select.value);
		// or
		console.log(e.detail.value);
	}
}
3.13.1

2 months ago

3.12.9

4 months ago

3.9.3

9 months ago

3.9.2

9 months ago

3.12.5

7 months ago

3.12.4

7 months ago

3.9.0

9 months ago

3.8.1

10 months ago

3.12.6

7 months ago

3.9.5

9 months ago

3.12.8

6 months ago

3.9.4

9 months ago

3.11.0

8 months ago

3.8.0

10 months ago

3.10.0

8 months ago

3.12.1

8 months ago

3.12.0

8 months ago

3.11.1

8 months ago

3.7.7

11 months ago

3.7.6

11 months ago

3.7.5

1 year ago

3.7.4

1 year ago

3.7.3

2 years ago

3.7.2

2 years ago

3.7.1

2 years ago

3.7.0

2 years ago

3.6.4

2 years ago

3.6.0

2 years ago

3.6.3

2 years ago

3.5.13

2 years ago

3.5.12

2 years ago

3.5.11

2 years ago

3.5.7

3 years ago

3.5.5

3 years ago

3.5.8

3 years ago

3.5.1

3 years ago

3.5.0

3 years ago

3.5.4

3 years ago

3.4.0

3 years ago

3.4.3

3 years ago

3.3.0

3 years ago

3.2.1

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago