Fluent Commerce Logo
Docs

Attribute Input Component

UI Component

Changed on:

8 July 2024

Overview

The Attribute Input Component is a default field component that allows you to add/edit Fluent entity Attributes in a drawer. 

No alt text provided
No alt text provided
No alt text provided
No alt text provided
No alt text provided
No alt text provided
Plugin NameCore

The standard library of mystique components. 

0000-00-00

v1.0.0

Initial changelog entry.

Alias

AttributeInput.list

Detailed technical description

The Attribute Input Component has two states:

No alt provided

State 1: This is the default state before the + ADD ATTRIBUTE button is pressed

No alt provided

State 2: Once the + ADD ATTRIBUTE button is pressed, the Attribute drawer will open

An Attribute has three mandatory fields: 

  • Type: Attributes can be of type STRING, INTEGER, BOOLEAN, JSON, or Other 
  • Name: Name of the Attribute 
  • Value: Value of the Attribute 

There are no limits on the number of Attributes a user can add. 

  • All attributes will be validated in the front end on submission.
  • The user must provide a value for each field. (type, name, and value)
  • The value field will be validated to ensure it matches the selected type.
  • There is no backend validation for Attributes on submission.

Properties

N/A

Version History

0000-00-00

v1.0.0

Initial changelog entry.

Recommended Placement

None