Skip to content

Advance layout API for the control panel extension.

Notifications You must be signed in to change notification settings

mecha-cms/x.panel.extra

Repository files navigation

Custom GUI Proposal for Mecha’s Panel

Code Size

At this time, the control panel extension already has support for several fields that added to follow the development of standards HTML5 form elements. These fields can still work without JavaScript and therefore I provide them in the control panel extension as the default fields:

  • field/blob
  • field/blobs
  • field/button
  • field/buttons
  • field/color
  • field/colors
  • field/content
  • field/date-time
  • field/date
  • field/description
  • field/email
  • field/flex
  • field/hidden
  • field/item
  • field/items
  • field/link
  • field/name
  • field/number
  • field/option
  • field/pass
  • field/path
  • field/query
  • field/range
  • field/set
  • field/source
  • field/text
  • field/time
  • field/title
  • field/toggle
  • field/u-r-l
  • field (unknown field type)

In some cases, developers may need certain fields to create unique types of websites. For example, they might need a field with type of money to support currency input because they want to create an online store using Mecha. Although this can be handled by the default text field, providing currency units and validating numbers can be a problem for clients.

This extension aims to provide various types of fields to handle complex data by making it available in the control panel field API without having to make the core control panel extension becomes bloated in the size.

Several types of fields planned to be realized are:

  • field/asset
  • field/code-mirror (will be available as a separate extension)
  • field/list
  • field/matrix
  • field/money
  • field/sortable

Additional GUI panels that might be worth adding:

  • cards
  • chart
  • dialog or window
  • stacks
  • table

Release Notes

main

  • Added field/money type.
  • Added table type.