Skip to content

Theme block JSON preset setting + default setting completion/hover #625

Closed
@charlespwd

Description

Requirements:

  • Key completion of presets.[].settings (same file)
{% schema %}
{
  "name": "Header Announcement",
  "blocks": [{ "type": "slide" }],
  "settings": [
    {
      "type": "text",
      "id": "my-text",
      "label": "Text"
    },
    {
      "type": "text",
      "id": "my-number",
      "label": "Text"
    }
  ],
  "presets": [
    {
      "name": "Header Announcement",
      "settings": {
        "█": "<-- should complete 'my-number', 'my-text'"
      },
    }
  ],
  "default": {
    "settings": {
      "█t": "<-- should complete 'my-number', 'my-text'"
    }
  }
}
{% endschema %}

Tasks

Preview Give feedback

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions