Skip to content

Rule Generation

maker is a rule generator provided by FormCreate, designed to simplify component rule creation through chained operations. Although it was once a commonly used tool, it is now not recommended for use.

[Deprecated] maker is still available but is not recommended for use in new forms.

Example

maker.create

maker.create is a general method for generating component rules of any type.

  • Parameters:

    • {string} tab Component name or tag name, such as 'i-button'.
    • {string} field Component field name for data binding.
    • {string} title Component title or label name.
  • Usage:

js
  formCreate.maker.create('i-button','btn','Custom Button')

This rule will generate a custom button that you can directly use in form generation.

Component Generation for Different UI Frameworks

FormCreate supports multiple UI frameworks, and each framework has corresponding maker methods to generate component rules. The following are links for each framework. You can select the corresponding framework to view more examples as needed:

FormCreate is an open-source project released under the MIT License. Free for personal and commercial use.