UNPKG

@ea-lab/reactive-json-docs

Version:

Complete documentation for Reactive-JSON - Components, examples and LLM-parsable guides

25 lines (16 loc) 1.33 kB
renderView: - type: Markdown content: | # Attribute Transformers > **Note**: Don't confuse with [Attribute Actions](../action/Attribute/index). Attribute Transformers execute **before rendering** and modify attributes for child components, while Attribute Actions execute **after rendering** and modify the DOM directly. Attribute Transformers allow you to dynamically modify element attributes before rendering, based on conditions from the application state. > **For detailed usage, examples, and extensibility information**, see **[Attribute Transformers Advanced Guide](../../advanced-concepts/attribute-transformers)**. ## Available Attribute Transformers ### Value Management - **[setAttributeValue](./setAttributeValue)**: Sets or modifies HTML attribute values dynamically before rendering - **[unsetAttributeValue](./unsetAttributeValue)**: Removes specific values from HTML attributes while preserving others - **[toggleAttributeValue](./toggleAttributeValue)**: Toggles the presence of specific values in HTML attributes, supports cyclic toggling ### Attribute Management - **[unsetAttribute](./unsetAttribute)**: Completely removes HTML attributes before rendering data: page_title: "Attribute Transformers - Reactive-JSON Documentation"