Define attribute groups #11

Open
opened 2022-06-20 15:42:27 +00:00 by brajkovic · 0 comments
Owner

Attribute groups would allow us to edit multiple attributes from one popup dialog.
If multiple attributes are displayed they are positioned one above the other,
all attributes used in groups must have @popup defined.

Syntax:

@group {
	@title DIALOG_TITLE: string
    @text DIALOG_TEXT: string
    
    @attributes {
    	@form ATTRIBUTE_NAME: identifier {
        	@text ATTRIBUTE_TEXT: string
        }
    }
}

Display:

+------------------------------+
| DIALOG_TITLE                 |
+------------------------------+
|                              |
| DIALOG_TEXT                  |
|                              |
| ATTRIBUTE_TEXT               |
| _INPUT_________________      |
|                              |
| ATTRIBUTE_TEXT               |
| _INPUT_________________      |
|                              |
| ATTRIBUTE_TEXT               |
| _INPUT_________________      |
|                              |
+------------------------------+

Where:

  • DIALOG_TITLE - dialog title
  • DIALOG_TEXT - text displayed on top of dialog
  • ATTRIBUTE_NAME - must be name of an attribute defined in same component
  • ATTRIBUTE_TEXT - text displayed on top of input form for given dialog
  •  Add new keywords: @group, @attributes and @form
  • Define new AST Node: AttributeGroupNode
  •  Define new Dialog: GroupDialog
  • Update context menu generation to support displaying and opening GroupDialog
Attribute groups would allow us to edit multiple attributes from one popup dialog. If multiple attributes are displayed they are positioned one above the other, all attributes used in groups must have @popup defined. __Syntax:__ ``` @group { @title DIALOG_TITLE: string @text DIALOG_TEXT: string @attributes { @form ATTRIBUTE_NAME: identifier { @text ATTRIBUTE_TEXT: string } } } ``` __Display:__ ``` +------------------------------+ | DIALOG_TITLE | +------------------------------+ | | | DIALOG_TEXT | | | | ATTRIBUTE_TEXT | | _INPUT_________________ | | | | ATTRIBUTE_TEXT | | _INPUT_________________ | | | | ATTRIBUTE_TEXT | | _INPUT_________________ | | | +------------------------------+ ``` __Where:__ - DIALOG_TITLE - dialog title - DIALOG_TEXT - text displayed on top of dialog - ATTRIBUTE_NAME - must be name of an attribute defined in same component - ATTRIBUTE_TEXT - text displayed on top of input form for given dialog * [ ] Add new keywords: @group, @attributes and @form * [ ] Define new AST Node: AttributeGroupNode * [ ] Define new Dialog: GroupDialog * [ ] Update context menu generation to support displaying and opening GroupDialog
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: brajkovic/schema_editor#11
No description provided.