TypeRocket / core

TypeRocket core source files where all the magic lives.
https://typerocket.com
36 stars 21 forks source link

Is it possible to set ID for inputs #56

Closed ozergul closed 2 years ago

ozergul commented 5 years ago

Hi For example Right now:

$rule->setTitleForm(function () {
    $form = tr_form();
    echo $form->wpEditor('Content');
});

Is it possible to use like this?

$rule->setTitleForm(function () {
    $form = tr_form();
    echo $form->wpEditor('Content')->setName('rule_content');
});

My aim is to make multilang panel. So input names can't be changed.

And, second question. What settings can we send as param?

https://github.com/TypeRocket/core/blob/master/functions/helpers.php#L94