You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-src/pages/api.md
+23-25Lines changed: 23 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ description: 'Functions, types, and constants'
21
21
22
22
Create a Web Component of type [Component](api/type-aliases/Component.html) with reactive properties that extend [ComponentProps](api/type-aliases/ComponentProps.html).
23
23
24
-
-[component](api/functions/component.html)
24
+
-[component](api/functions/component.html) defines a custom element with reactive properties and declarative effects
25
25
26
26
</section>
27
27
@@ -32,8 +32,6 @@ Create a Web Component of type [Component](api/type-aliases/Component.html) with
32
32
Create a signal of type [Signal](api/type-aliases/Signal.html).
33
33
34
34
-[computed](api/functions/computed.html) creates a [Computed](api/type-aliases/Computed.html) signal derived from other signals
35
-
-[selection](api/functions/selection.html) creates a [Computed](api/type-aliases/Computed.html) signal that updates according to a dynamic CSS selector
36
-
-[sensor](api/functions/sensor.html) creates a [Computed](api/type-aliases/Computed.html) signal that updates according to events
37
35
-[state](api/functions/state.html) creates a [State](api/type-aliases/State.html) signal
38
36
39
37
Helper functions:
@@ -50,20 +48,20 @@ Helper functions:
50
48
51
49
Declare how attributes are parsed. Functions returning [AttributeParser](api/type-aliases/AttributeParser.html) that will be used to create [State](api/type-aliases/State.html) signals as reactive properties on the component.
-[dangerouslySetInnerHTML](api/functions/dangerouslySetInnerHTML.html) sets inner HTML content from a signal
81
+
-[emit](api/functions/emit.html) dispatches custom events when signals change
82
+
-[insertOrRemoveElement](api/functions/insertOrRemoveElement.html) conditionally inserts or removes elements
83
+
-[on](api/functions/on.html) attaches event listeners to elements
84
+
-[pass](api/functions/pass.html) passes signal values to descendant component properties
85
+
-[provide](api/functions/provide.html) provides context values to descendant components
86
+
-[setAttribute](api/functions/setAttribute.html) sets element attributes from signals
87
+
-[setProperty](api/functions/setProperty.html) sets element properties from signals
88
+
-[setStyle](api/functions/setStyle.html) sets CSS styles from signals
89
+
-[setText](api/functions/setText.html) sets text content from signals
90
+
-[show](api/functions/show.html) conditionally shows or hides elements
91
+
-[toggleAttribute](api/functions/toggleAttribute.html) toggles attributes based on signal values
92
+
-[toggleClass](api/functions/toggleClass.html) toggles CSS classes based on signal values
93
+
-[updateElement](api/functions/updateElement.html) base function for updating elements, used for [setText](api/functions/setText.html), [show](api/functions/show.html), [toggleClass](api/functions/toggleClass.html), [toggleAttribute](api/functions/toggleAttribute.html), [setAttribute](api/functions/setAttribute.html), [setProperty](api/functions/setProperty.html), [setStyle](api/functions/setStyle.html)
0 commit comments